woops. dotn pass NULL
authorGlenn L McGrath <bug1@ihug.co.nz>
Wed, 21 Nov 2001 10:01:29 +0000 (10:01 -0000)
committerGlenn L McGrath <bug1@ihug.co.nz>
Wed, 21 Nov 2001 10:01:29 +0000 (10:01 -0000)
coreutils/wc.c

index 728d725a3bc9040d0f2f214777a55c3c62982935..94f1ee6106b63a5b0989aa6d6b7756db64c21717 100644 (file)
@@ -139,7 +139,7 @@ int wc_main(int argc, char **argv)
        }
 
        if (argv[optind] == NULL || strcmp(argv[optind], "-") == 0) {
-               wc_file(stdin, NULL);
+               wc_file(stdin, "");
                return EXIT_SUCCESS;
        } else {
                while (optind < argc) {