woops. dotn pass NULL
This commit is contained in:
parent
1477ad8e83
commit
c29ab97094
@ -139,7 +139,7 @@ int wc_main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (argv[optind] == NULL || strcmp(argv[optind], "-") == 0) {
|
if (argv[optind] == NULL || strcmp(argv[optind], "-") == 0) {
|
||||||
wc_file(stdin, NULL);
|
wc_file(stdin, "");
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
} else {
|
} else {
|
||||||
while (optind < argc) {
|
while (optind < argc) {
|
||||||
|
Loading…
Reference in New Issue
Block a user