aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--camel/ChangeLog4
-rw-r--r--camel/camel-object.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index 463c818041..f3b2a50004 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,5 +1,9 @@
2004-01-29 Not Zed <NotZed@Ximian.com>
+ * camel-object.c (cobject_state_write): output scan->name and
+ scan->value for writing metadata, rather than meta->name/value
+ which just duplicates the last entry, related to #53195.
+
* camel-url.c (camel_url_free): zero out passwd/user/host before
freeing them.
diff --git a/camel/camel-object.c b/camel/camel-object.c
index c8e14ac9e0..7ca9e84d8a 100644
--- a/camel/camel-object.c
+++ b/camel/camel-object.c
@@ -505,8 +505,8 @@ cobject_state_write(CamelObject *obj, FILE *fp)
scan = meta;
while (scan) {
- if (camel_file_util_encode_string(fp, meta->name) == -1
- || camel_file_util_encode_string(fp, meta->value) == -1)
+ if (camel_file_util_encode_string(fp, scan->name) == -1
+ || camel_file_util_encode_string(fp, scan->value) == -1)
goto abort;
scan = scan->next;
}