]> git.refcnt.org Git - colorize.git/commitdiff
Check for non-empty line
authorSteven Schubiger <stsc@refcnt.org>
Tue, 16 Jul 2013 20:19:11 +0000 (22:19 +0200)
committerSteven Schubiger <stsc@refcnt.org>
Tue, 16 Jul 2013 20:19:11 +0000 (22:19 +0200)
colorize.c

index 542e400053a1b19c098d3bd62089a77c3ffb4c6a..da444e4085ec220e654a45a30bbfb3c92144d027 100644 (file)
@@ -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);