summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--mmime.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mmime.c b/mmime.c
index 6f25819..6188f5b 100644
--- a/mmime.c
+++ b/mmime.c
@@ -282,6 +282,9 @@ print_header(char *line) {
 	char *s, *e;
 	size_t l = strlen(line);
 
+	if (l == 0)
+		return;
+
 	if (line[l-1] == '\n')
 		line[l-1] = 0;