X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=lib-mime%2Frfc2231.c;h=b5a25536ca810eee26eb61bdb7399c500e396627;hp=e7c10533e40bb0367a0641de209641d673c37928;hb=c01e17f6b99066ca30931a082ea855656174619b;hpb=3a3420a4cb3369d51eecc9287d556596f98e7314 diff --git a/lib-mime/rfc2231.c b/lib-mime/rfc2231.c index e7c1053..b5a2553 100644 --- a/lib-mime/rfc2231.c +++ b/lib-mime/rfc2231.c @@ -47,6 +47,7 @@ #include #include "charset.h" +#include "mutt.h" typedef struct rfc2231_param { struct rfc2231_param *next; @@ -139,8 +140,7 @@ static void purge_empty_parameters(PARAMETER **headp) PARAMETER *p = *headp; if (!p->attribute || !p->value) { - *headp = p->next; - p->next = NULL; + p = parameter_list_pop(headp); parameter_delete(&p); } else { headp = &(*headp)->next;