woops. dotn pass NULL

1_00_stable_10817
Glenn L McGrath 2001-11-21 10:01:29 +00:00
parent 1477ad8e83
commit c29ab97094
1 changed files with 1 additions and 1 deletions

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