projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix compilation errors
[apps/madmutt.git]
/
lib-mime
/
rfc2231.c
diff --git
a/lib-mime/rfc2231.c
b/lib-mime/rfc2231.c
index
e7c1053
..
b5a2553
100644
(file)
--- a/
lib-mime/rfc2231.c
+++ b/
lib-mime/rfc2231.c
@@
-47,6
+47,7
@@
#include <lib-mime/mime.h>
#include "charset.h"
#include <lib-mime/mime.h>
#include "charset.h"
+#include "mutt.h"
typedef struct rfc2231_param {
struct rfc2231_param *next;
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) {
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;
parameter_delete(&p);
} else {
headp = &(*headp)->next;