Commit b1f95bd4 authored by Thomas Roessler's avatar Thomas Roessler

Catch MIME parameters with p->value == NULL.

parent 2dd23f6c
...@@ -373,9 +373,12 @@ int mutt_write_mime_header (BODY *a, FILE *f) ...@@ -373,9 +373,12 @@ int mutt_write_mime_header (BODY *a, FILE *f)
{ {
len = 25 + strlen (a->subtype); /* approximate len. of content-type */ len = 25 + strlen (a->subtype); /* approximate len. of content-type */
p = a->parameter; for(p = a->parameter; p; p = p->next)
while (p)
{ {
if(!p->value)
continue;
fputc (';', f); fputc (';', f);
buffer[0] = 0; buffer[0] = 0;
...@@ -396,7 +399,6 @@ int mutt_write_mime_header (BODY *a, FILE *f) ...@@ -396,7 +399,6 @@ int mutt_write_mime_header (BODY *a, FILE *f)
fprintf (f, "%s=%s", p->attribute, buffer); fprintf (f, "%s=%s", p->attribute, buffer);
p = p->next;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment