summaryrefslogtreecommitdiffstats
path: root/usr.bin/uniq/uniq.c
diff options
context:
space:
mode:
authortjr <tjr@FreeBSD.org>2004-09-14 12:01:18 +0000
committertjr <tjr@FreeBSD.org>2004-09-14 12:01:18 +0000
commitd7872e5e5f350a3b99d88b5941d7c27087d2a910 (patch)
treea8a745e31ee73c9ef87235a1cd983e054f23b0b4 /usr.bin/uniq/uniq.c
parentea95dbf32173c999f04e1b0dfca3fe7f20f5adf8 (diff)
downloadFreeBSD-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
Diffstat (limited to 'usr.bin/uniq/uniq.c')
-rw-r--r--usr.bin/uniq/uniq.c2
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);
OpenPOWER on IntegriCloud