summaryrefslogtreecommitdiffstats
path: root/sendlib.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1998-09-04 15:53:27 +0000
committerThomas Roessler <roessler@does-not-exist.org>1998-09-04 15:53:27 +0000
commitb1f95bd4cd5c16e17a4d106d71e37f3ac3ada037 (patch)
treecf292f2cdc12f8ae764755ac7291280da190983a /sendlib.c
parent2dd23f6ca08a182af64abcc960e5462cd456fd91 (diff)
Catch MIME parameters with p->value == NULL.
Diffstat (limited to 'sendlib.c')
-rw-r--r--sendlib.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sendlib.c b/sendlib.c
index ac6e2f0f..60e628f6 100644
--- a/sendlib.c
+++ b/sendlib.c
@@ -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;
}
}