diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 1998-09-04 15:53:27 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 1998-09-04 15:53:27 +0000 |
commit | b1f95bd4cd5c16e17a4d106d71e37f3ac3ada037 (patch) | |
tree | cf292f2cdc12f8ae764755ac7291280da190983a /sendlib.c | |
parent | 2dd23f6ca08a182af64abcc960e5462cd456fd91 (diff) |
Catch MIME parameters with p->value == NULL.
Diffstat (limited to 'sendlib.c')
-rw-r--r-- | sendlib.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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; } } |