mshow: choose_alternative: skip empty MIME parts.

pull/147/head
Leah Neukirchen 6 years ago
parent 41098c3851
commit 2069a0e913

@ -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;

Loading…
Cancel
Save