aboutsummaryrefslogtreecommitdiffstats
path: root/camel
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2004-01-29 13:53:05 +0800
committerMichael Zucci <zucchi@src.gnome.org>2004-01-29 13:53:05 +0800
commit3629f67f594ac7d21a777f01317cf2cb95774588 (patch)
treef88a46367051d456222f95932945040cd8e54b31 /camel
parent0fe0fa9aa2e887335dc28cdfec55226c5ad31755 (diff)
downloadgsoc2013-evolution-3629f67f594ac7d21a777f01317cf2cb95774588.tar
gsoc2013-evolution-3629f67f594ac7d21a777f01317cf2cb95774588.tar.gz
gsoc2013-evolution-3629f67f594ac7d21a777f01317cf2cb95774588.tar.bz2
gsoc2013-evolution-3629f67f594ac7d21a777f01317cf2cb95774588.tar.lz
gsoc2013-evolution-3629f67f594ac7d21a777f01317cf2cb95774588.tar.xz
gsoc2013-evolution-3629f67f594ac7d21a777f01317cf2cb95774588.tar.zst
gsoc2013-evolution-3629f67f594ac7d21a777f01317cf2cb95774588.zip
output scan->name and scan->value for writing metadata, rather than
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. svn path=/trunk/; revision=24510
Diffstat (limited to 'camel')
-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;
}