projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
use more ad-hoc list handling function, and avoid to muck with ->next
[apps/madmutt.git]
/
lib-mime
/
rfc2231.c
diff --git
a/lib-mime/rfc2231.c
b/lib-mime/rfc2231.c
index
bf05bef
..
b5a2553
100644
(file)
--- a/
lib-mime/rfc2231.c
+++ b/
lib-mime/rfc2231.c
@@
-140,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;
}