2001-05-28 Jeffrey Stedfast <fejj@ximian.com>
* camel-mime-utils.c (header_set_param): Use g_strcasecmp()
because some systems don't have strcasecmp(). Also, when removing
a param, make sure to free the param->name too.
+2001-05-28 Jeffrey Stedfast <fejj@ximian.com>
+
+ * camel-mime-utils.c (header_set_param): Use g_strcasecmp()
+ because some systems don't have strcasecmp(). Also, when removing
+ a param, make sure to free the param->name too.
+
2001-05-27 Dan Winship <danw@ximian.com>
* tests/lib/messages.c (test_message_read_file): Fix an fd leak
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;
}
if (!header_content_type_is (type, "multipart", "signed"))
return FALSE;
- /* check that we have a protocol param with the value: "application/pgp-signed" */
+ /* check that we have a protocol param with the value: "application/pgp-signature" */
param = header_content_type_param (type, "protocol");
if (!param || g_strcasecmp (param, "application/pgp-signature"))
return FALSE;