From: Kevin McCarthy Date: Mon, 6 May 2019 19:37:04 +0000 (-0700) Subject: Add a test for NULL parameter attribute too. X-Git-Tag: mutt-1-12-rel~23 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2f8bc797dcd1add5ed7bf16729ed13bd60805ab8;p=mutt Add a test for NULL parameter attribute too. Just to be sure we don't have any issues with the new continuation code. The mutt_set_parameter() code doesn't actively prevent a null attribute. --- diff --git a/sendlib.c b/sendlib.c index 6f8b556f..46212a2f 100644 --- a/sendlib.c +++ b/sendlib.c @@ -309,7 +309,7 @@ int mutt_write_mime_header (BODY *a, FILE *f) for (p = a->parameter; p; p = p->next) { - if (!p->value) + if (!(p->attribute && p->value)) continue; param_conts = rfc2231_encode_string (p->attribute, p->value);