projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d6912c9
)
Fix argument parsing.
author
Matt Kraai
<kraai@debian.org>
Fri, 14 Jul 2000 06:47:33 +0000
(06:47 -0000)
committer
Matt Kraai
<kraai@debian.org>
Fri, 14 Jul 2000 06:47:33 +0000
(06:47 -0000)
coreutils/wc.c
patch
|
blob
|
history
wc.c
patch
|
blob
|
history
diff --git
a/coreutils/wc.c
b/coreutils/wc.c
index bad03f79152fafb2be918ee223ccbf3eed4d67c5..3b0e589b6ccdcda948419f261d0d8b9fcf4aa270 100644
(file)
--- 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);
diff --git
a/wc.c
b/wc.c
index bad03f79152fafb2be918ee223ccbf3eed4d67c5..3b0e589b6ccdcda948419f261d0d8b9fcf4aa270 100644
(file)
--- a/
wc.c
+++ b/
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);