diff options
author | tjr <tjr@FreeBSD.org> | 2004-09-14 12:01:18 +0000 |
---|---|---|
committer | tjr <tjr@FreeBSD.org> | 2004-09-14 12:01:18 +0000 |
commit | d7872e5e5f350a3b99d88b5941d7c27087d2a910 (patch) | |
tree | a8a745e31ee73c9ef87235a1cd983e054f23b0b4 | |
parent | ea95dbf32173c999f04e1b0dfca3fe7f20f5adf8 (diff) | |
download | FreeBSD-src-d7872e5e5f350a3b99d88b5941d7c27087d2a910.zip FreeBSD-src-d7872e5e5f350a3b99d88b5941d7c27087d2a910.tar.gz |
Remove a bogus check that caused empty lines not to be counted when the
-c option was given.
Noticed by: sf
-rw-r--r-- | usr.bin/uniq/uniq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/uniq/uniq.c b/usr.bin/uniq/uniq.c index af91ee3..a71726c 100644 --- a/usr.bin/uniq/uniq.c +++ b/usr.bin/uniq/uniq.c @@ -210,7 +210,7 @@ void show(FILE *ofp, wchar_t *str) { - if (cflag && *str) + if (cflag) (void)fprintf(ofp, "%4d %ls\n", repeats + 1, str); if ((dflag && repeats) || (uflag && !repeats)) (void)fprintf(ofp, "%ls\n", str); |