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: 2019-10-25~215^2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=241103d729e79f31ba9e6d52b0157e6155357bf0;p=neomutt 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. Co-authored-by: Richard Russon --- diff --git a/sendlib.c b/sendlib.c index 549991f32..ac2dc7555 100644 --- a/sendlib.c +++ b/sendlib.c @@ -369,7 +369,7 @@ int mutt_write_mime_header(struct Body *a, FILE *fp) struct Parameter *np = NULL; TAILQ_FOREACH(np, &a->parameter, entries) { - if (!np->value) + if (!np->attribute || !np->value) continue; struct ParameterList param_conts = rfc2231_encode_string(np->attribute, np->value);