[evolution-data-server] Bug #616318 - Don't use an unitialized key in folder_changed_remove_uid
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Bug #616318 - Don't use an unitialized key in folder_changed_remove_uid
- Date: Tue, 27 Apr 2010 11:04:58 +0000 (UTC)
commit c5bbcdc514dfe2449191b143a95166e2b06bde93
Author: Claudio Saavedra <csaavedra igalia com>
Date: Tue Apr 27 13:04:03 2010 +0200
Bug #616318 - Don't use an unitialized key in folder_changed_remove_uid
If g_hash_table_lookup_extended() returns FALSE, then the oldkey
is unset, so don't use it to insert a new item in the hash table.
camel/camel-vee-folder.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/camel/camel-vee-folder.c b/camel/camel-vee-folder.c
index 76ce2c1..533e4f5 100644
--- a/camel/camel-vee-folder.c
+++ b/camel/camel-vee-folder.c
@@ -210,7 +210,7 @@ folder_changed_remove_uid (CamelFolder *sub, const gchar *uid, const gchar hash[
}
} else {
if (vee_folder_add_uid_test (folder_unmatched, sub, uid, hash))
- camel_folder_change_info_add_uid (folder_unmatched->changes, oldkey);
+ camel_folder_change_info_add_uid (folder_unmatched->changes, vuid);
}
} else {
if (g_hash_table_lookup_extended (unmatched_uids, vuid, (gpointer *)&oldkey, &oldval)) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]