From 3629f67f594ac7d21a777f01317cf2cb95774588 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Thu, 29 Jan 2004 05:53:05 +0000 Subject: output scan->name and scan->value for writing metadata, rather than 2004-01-29 Not Zed * 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. svn path=/trunk/; revision=24510 --- camel/ChangeLog | 4 ++++ camel/camel-object.c | 4 ++-- 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 + * 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; } -- cgit