summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/wc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wc.c b/src/wc.c
index 8647fd77d..1ddd71105 100644
--- a/src/wc.c
+++ b/src/wc.c
@@ -208,7 +208,7 @@ wc (int fd, char const *file_x, struct fstatus *fstatus)
size_t bytes_read;
uintmax_t lines, words, chars, bytes, linelength;
int count_bytes, count_chars, count_complicated;
- char const *file = file_x == NULL ? _("standard input") : file;
+ char const *file = file_x ? file_x : _("standard input");
lines = words = chars = bytes = linelength = 0;