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)
{
len = 25 + strlen (a->subtype); /* approximate len. of content-type */
p = a->parameter;
while (p)
for(p = a->parameter; p; p = p->next)
{
if(!p->value)
continue;
fputc (';', f);
buffer[0] = 0;
......@@ -396,7 +399,6 @@ int mutt_write_mime_header (BODY *a, FILE *f)
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