From: Sergio Villar Senin Date: Wed, 15 Apr 2009 10:09:18 +0000 (+0000) Subject: Fix for bug #578821 X-Git-Tag: upstream/3.7.4~4090 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=759fc011c4a17aff0bdaff2485b52abff0b37503;p=platform%2Fupstream%2Fevolution-data-server.git Fix for bug #578821 svn path=/trunk/; revision=10216 --- diff --git a/camel/camel-vee-folder.c b/camel/camel-vee-folder.c index cf74ec9..611cfb2 100644 --- a/camel/camel-vee-folder.c +++ b/camel/camel-vee-folder.c @@ -1803,15 +1803,16 @@ subfolder_renamed_update(CamelVeeFolder *vf, CamelFolder *sub, char hash[8]) count--; vinfo = vee_folder_add_uid(vf, sub, uid+8, hash); - if (vinfo) + if (vinfo) { camel_folder_change_info_add_uid(vf->changes, camel_message_info_uid(vinfo)); - /* check unmatched uid's table for any matches */ - if (vf == folder_unmatched - && g_hash_table_lookup_extended(unmatched_uids, uid, (void **)&oldkey, &oldval)) { - g_hash_table_remove(unmatched_uids, oldkey); - g_hash_table_insert(unmatched_uids, g_strdup(camel_message_info_uid(vinfo)), oldval); - g_free(oldkey); + /* check unmatched uid's table for any matches */ + if (vf == folder_unmatched + && g_hash_table_lookup_extended(unmatched_uids, uid, (void **)&oldkey, &oldval)) { + g_hash_table_remove(unmatched_uids, oldkey); + g_hash_table_insert(unmatched_uids, g_strdup(camel_message_info_uid(vinfo)), oldval); + g_free(oldkey); + } } }