]> granicus.if.org Git - neomutt/commitdiff
Catch MIME parameters with p->value == NULL.
authorThomas Roessler <roessler@does-not-exist.org>
Fri, 4 Sep 1998 15:53:27 +0000 (15:53 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Fri, 4 Sep 1998 15:53:27 +0000 (15:53 +0000)
sendlib.c

index ac6e2f0fbf96b573c2f3e405720ccd3a3b3e6c6b..60e628f64ed1253459ce0c93ee98cffc57efc99a 100644 (file)
--- 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;
     }
   }