X-Git-Url: http://git.madism.org/?a=blobdiff_plain;ds=sidebyside;f=lib-mime%2Frfc2231.c;h=b5a25536ca810eee26eb61bdb7399c500e396627;hb=01bd0a7410e476abaebf03d820bcf31a5ec4c7c0;hp=e1eec1e6c1100c373e41052e4fa1bcbef3cdbce3;hpb=108f3c7ab59844591f7540347914ea57be5245e2;p=apps%2Fmadmutt.git diff --git a/lib-mime/rfc2231.c b/lib-mime/rfc2231.c index e1eec1e..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,9 +140,8 @@ static void purge_empty_parameters(PARAMETER **headp) PARAMETER *p = *headp; if (!p->attribute || !p->value) { - *headp = p->next; - p->next = NULL; - parameter_list_wipe(&p); + p = parameter_list_pop(headp); + parameter_delete(&p); } else { headp = &(*headp)->next; }