about summary refs log tree commit diff
path: root/mshow.c
diff options
context:
space:
mode:
Diffstat (limited to 'mshow.c')
-rw-r--r--mshow.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mshow.c b/mshow.c
index d4b1ba8..fb35330 100644
--- a/mshow.c
+++ b/mshow.c
@@ -326,6 +326,10 @@ choose_alternative(struct message *msg, int depth)
 	struct message *imsg = 0;
 	while (blaze822_multipart(msg, &imsg)) {
 		m++;
+
+		if (blaze822_bodylen(imsg) == 0)
+			continue;
+
 		char *ict = blaze822_hdr(imsg, "content-type");
 		if (!ict)
 			ict = fallback_ct;