woops. dotn pass NULL

This commit is contained in:
Glenn L McGrath 2001-11-21 10:01:29 +00:00
parent 1477ad8e83
commit c29ab97094

View 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) {