diff options
-rw-r--r-- | coreutils/wc.c | 2 | ||||
-rw-r--r-- | wc.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/wc.c b/coreutils/wc.c index bad03f7..3b0e589 100644 --- a/coreutils/wc.c +++ b/coreutils/wc.c @@ -154,7 +154,7 @@ int wc_main(int argc, char **argv) } wc_file(file, *argv); } else { - while (argc-- > 0 && *argv != '\0' && strlen(*argv)) { + while (argc-- > 0) { file = fopen(*argv, "r"); if (file == NULL) { perror(*argv); @@ -154,7 +154,7 @@ int wc_main(int argc, char **argv) } wc_file(file, *argv); } else { - while (argc-- > 0 && *argv != '\0' && strlen(*argv)) { + while (argc-- > 0) { file = fopen(*argv, "r"); if (file == NULL) { perror(*argv); |