diff options
Diffstat (limited to 'camel/gmime-content-field.c')
-rw-r--r-- | camel/gmime-content-field.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/camel/gmime-content-field.c b/camel/gmime-content-field.c index 6788332753..07924c1915 100644 --- a/camel/gmime-content-field.c +++ b/camel/gmime-content-field.c @@ -151,6 +151,7 @@ gmime_content_field_set_parameter (GMimeContentField *content_field, const gchar (gpointer *) &old_value); /** CHECK THAT : is normal to free pointers before insertion ? **/ if (attribute_exists) { + g_hash_table_remove(content_field->parameters, attribute); g_free (old_value); g_free (old_attribute); } @@ -369,6 +370,7 @@ gmime_content_field_construct_from_string (GMimeContentField *content_field, con if (i != first) param_value = g_strndup (string+first, i-first); else param_value = g_strdup (""); CAMEL_LOG_TRACE ( "GMimeContentField::construct_from_string, Found mime parameter \"%s\"=\"%s\"\n", param_name, param_value); + printf( "GMimeContentField::construct_from_string, Found mime parameter \"%s\"=\"%s\"\n", param_name, param_value); string_trim (param_value, " \t\"", STRING_TRIM_STRIP_TRAILING | STRING_TRIM_STRIP_LEADING); gmime_content_field_set_parameter (content_field, param_name, param_value); g_free (param_name); |