diff options
author | marcus <marcus@FreeBSD.org> | 2003-10-26 05:04:53 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2003-10-26 05:04:53 +0800 |
commit | 7954c0befe1fc3ab5649f244f5988b4475a440db (patch) | |
tree | d4ec1935e55762a70bfc8cf23a31ff8c647046cd /mail | |
parent | 72e12e21778b77d7839ca90c57a6d0203f88bca1 (diff) | |
download | freebsd-ports-gnome-7954c0befe1fc3ab5649f244f5988b4475a440db.tar.gz freebsd-ports-gnome-7954c0befe1fc3ab5649f244f5988b4475a440db.tar.zst freebsd-ports-gnome-7954c0befe1fc3ab5649f244f5988b4475a440db.zip |
Fix a bug where Evo would crash on exit on Sparc64. I'm not bumping
PORTREVISION since the user base is fairly low.
Reported by: Koop Mast <einekoai@chello.nl>
Tested by: Koop Mast <einekoai@chello.nl>
Diffstat (limited to 'mail')
-rw-r--r-- | mail/evolution/files/patch-camel_camel-vee-folder.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/mail/evolution/files/patch-camel_camel-vee-folder.c b/mail/evolution/files/patch-camel_camel-vee-folder.c new file mode 100644 index 000000000000..019d60919da9 --- /dev/null +++ b/mail/evolution/files/patch-camel_camel-vee-folder.c @@ -0,0 +1,20 @@ +--- camel/camel-vee-folder.c.orig Mon Jun 23 13:59:58 2003 ++++ camel/camel-vee-folder.c Tue Oct 21 20:04:10 2003 +@@ -969,7 +969,7 @@ + } + if ((vf->flags & CAMEL_STORE_FOLDER_PRIVATE) == 0) { + if (still) { +- if (g_hash_table_lookup_extended(unmatched_uids, uid, (void **)&oldkey, (void **)&n)) { ++ if (g_hash_table_lookup_extended(unmatched_uids, uid, (void **)&oldkey, (void **)&n) && n > 0) { + if (n == 1) { + g_hash_table_remove(unmatched_uids, oldkey); + if (vee_folder_add_uid(folder_unmatched, source, oldkey+8, hash)) +@@ -1290,7 +1290,7 @@ + camel_folder_change_info_add_uid(folder_unmatched->changes, oldkey); + } + } else { +- if (g_hash_table_lookup_extended(unmatched_uids, vuid, (void **)&oldkey, (void **)&n)) { ++ if (g_hash_table_lookup_extended(unmatched_uids, vuid, (void **)&oldkey, (void **)&n) && n > 0) { + g_hash_table_remove(unmatched_uids, oldkey); + g_free(oldkey); + } |