From 71b2608d4083475b8afabe1dc684563efe461140 Mon Sep 17 00:00:00 2001 From: Steven Schubiger Date: Tue, 16 Jul 2013 22:19:11 +0200 Subject: Check for non-empty line --- colorize.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'colorize.c') 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); -- cgit v1.2.3