Remove a bogus check that caused empty lines not to be counted when the

-c option was given.

Noticed by:	sf
This commit is contained in:
Tim J. Robbins 2004-09-14 12:01:18 +00:00
parent 13177659d2
commit 0cd82603c0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=135214

View File

@ -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);