From: Jim Meyering Date: Wed, 23 Jul 2003 05:47:57 +0000 (+0000) Subject: (wc): Fix typo in computation of file from file_x, X-Git-Tag: v5.0.90~142 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d0b2cc66a6d520094364e6af8d4f6fad49521c9;p=thirdparty%2Fcoreutils.git (wc): Fix typo in computation of file from file_x, which caused the former to be used uninitialized if file_x was nonzero. --- diff --git a/src/wc.c b/src/wc.c index 8647fd77de..1ddd71105f 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;