From d7872e5e5f350a3b99d88b5941d7c27087d2a910 Mon Sep 17 00:00:00 2001 From: tjr Date: Tue, 14 Sep 2004 12:01:18 +0000 Subject: [PATCH] Remove a bogus check that caused empty lines not to be counted when the -c option was given. Noticed by: sf --- usr.bin/uniq/uniq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);