aboutsummaryrefslogtreecommitdiffstats
path: root/colorize.c
diff options
context:
space:
mode:
authorGravatar Steven Schubiger <stsc@refcnt.org> 2013-07-16 22:19:11 +0200
committerGravatar Steven Schubiger <stsc@refcnt.org> 2013-07-16 22:19:11 +0200
commit71b2608d4083475b8afabe1dc684563efe461140 (patch)
tree9812e629b517a4a8644ee8a12342974764d1b076 /colorize.c
parent48e16787d8aa263099b0f8d2d6faf4fe72a1c0d3 (diff)
downloadcolorize-71b2608d4083475b8afabe1dc684563efe461140.tar.gz
colorize-71b2608d4083475b8afabe1dc684563efe461140.tar.bz2
Check for non-empty line
Diffstat (limited to 'colorize.c')
-rw-r--r--colorize.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/colorize.c b/colorize.c
index 542e400..da444e4 100644
--- a/colorize.c
+++ b/colorize.c
@@ -644,7 +644,7 @@ read_print_stream (bool bold, const struct color **colors, const char *file, FIL
if (feof (stream)) {
MERGE_PRINT_LINE (part_line, line, 0, true);
}
- else
+ else if (*line != '\0')
{
if (!clean && !clean_all) /* efficiency */
print_line (colors, bold, line, 0);