]> git.refcnt.org Git - colorize.git/blobdiff - colorize.c
Check for non-empty line
[colorize.git] / 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);