diff options
author | Jim Meyering <jim@meyering.net> | 2003-07-20 21:13:04 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-07-20 21:13:04 +0000 |
commit | 1eb0fd1dd12316b4033605d95dd3111f1204ac64 (patch) | |
tree | dc269f27718a6d75092851b672455d0c14465340 | |
parent | 1fb0960527f7ce534048edb8e2a19826eba5043c (diff) | |
download | coreutils-1eb0fd1dd12316b4033605d95dd3111f1204ac64.tar.xz |
(get_input_fstatus): Fix typo: `stat' was being
invoked with a null pointer when there were no file arguments.
-rw-r--r-- | src/wc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -554,7 +554,7 @@ get_input_fstatus (int nfiles, char * const *file) int i; for (i = 0; i < nfiles; i++) - fstatus[i].failed = (file[i] && STREQ (file[i], "-") + fstatus[i].failed = (! file[i] || STREQ (file[i], "-") ? fstat (STDIN_FILENO, &fstatus[i].st) : stat (file[i], &fstatus[i].st)); } |