diff --git a/src/vrend_strbuf.h b/src/vrend_strbuf.h index 26296fa..6fd4e92 100644 --- a/src/vrend_strbuf.h +++ b/src/vrend_strbuf.h @@ -215,7 +215,8 @@ static inline void strarray_dump_with_line_numbers(struct vrend_strarray *sa) } else { len = strlen(line); } - vrend_printf("%4d: %.*s\n", lineno++, len, line); + if (len) + vrend_printf("%4d: %.*s\n", lineno++, len, line); } while (end); } }