diff options
Diffstat (limited to 'camel/camel-mime-utils.c')
-rw-r--r-- | camel/camel-mime-utils.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/camel/camel-mime-utils.c b/camel/camel-mime-utils.c index b8ac8aae93..2686b9921b 100644 --- a/camel/camel-mime-utils.c +++ b/camel/camel-mime-utils.c @@ -1778,13 +1778,14 @@ header_set_param(struct _header_param **l, const char *name, const char *value) while (p->next) { pn = p->next; - if (!strcasecmp(pn->name, name)) { - g_free(pn->value); + if (!g_strcasecmp (pn->name, name)) { + g_free (pn->value); if (value) { pn->value = g_strdup(value); return pn; } else { p->next = pn->next; + g_free (pn->name); g_free(pn); return NULL; } |