diff options
author | Tim J. Robbins <tjr@FreeBSD.org> | 2004-09-14 12:01:18 +0000 |
---|---|---|
committer | Tim J. Robbins <tjr@FreeBSD.org> | 2004-09-14 12:01:18 +0000 |
commit | 0cd82603c02d9494c06d18e011077899633a8194 (patch) | |
tree | a8a745e31ee73c9ef87235a1cd983e054f23b0b4 /usr.bin/uniq/uniq.c | |
parent | 13177659d25b83617fb72a661b23356ce446ee8f (diff) | |
download | src-0cd82603c02d9494c06d18e011077899633a8194.tar.gz src-0cd82603c02d9494c06d18e011077899633a8194.zip |
Remove a bogus check that caused empty lines not to be counted when the
-c option was given.
Noticed by: sf
Notes
Notes:
svn path=/head/; revision=135214
Diffstat (limited to 'usr.bin/uniq/uniq.c')
-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 af91ee353665..a71726cc5fc8 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); |