summaryrefslogtreecommitdiff
path: root/coreutils/wc.c
diff options
context:
space:
mode:
authorGlenn L McGrath <bug1@ihug.co.nz>2001-11-21 10:01:29 +0000
committerGlenn L McGrath <bug1@ihug.co.nz>2001-11-21 10:01:29 +0000
commitc29ab9709489a93ba5f740f3a47b96d3bc8ef705 (patch)
tree065eea441bac1e1ae7d6f55666624563adf84038 /coreutils/wc.c
parent1477ad8e8319a3ef4623b699083295a0fd560adf (diff)
downloadbusybox-w32-c29ab9709489a93ba5f740f3a47b96d3bc8ef705.tar.gz
busybox-w32-c29ab9709489a93ba5f740f3a47b96d3bc8ef705.tar.bz2
busybox-w32-c29ab9709489a93ba5f740f3a47b96d3bc8ef705.zip
woops. dotn pass NULL
Diffstat (limited to 'coreutils/wc.c')
-rw-r--r--coreutils/wc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/wc.c b/coreutils/wc.c
index 728d725a3..94f1ee610 100644
--- a/coreutils/wc.c
+++ b/coreutils/wc.c
@@ -139,7 +139,7 @@ int wc_main(int argc, char **argv)
139 } 139 }
140 140
141 if (argv[optind] == NULL || strcmp(argv[optind], "-") == 0) { 141 if (argv[optind] == NULL || strcmp(argv[optind], "-") == 0) {
142 wc_file(stdin, NULL); 142 wc_file(stdin, "");
143 return EXIT_SUCCESS; 143 return EXIT_SUCCESS;
144 } else { 144 } else {
145 while (optind < argc) { 145 while (optind < argc) {