[evolution-data-server] Bug #668679 - Crash on insertion of NULL in e_destination_set_contact()
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Bug #668679 - Crash on insertion of NULL in e_destination_set_contact()
- Date: Mon, 23 Apr 2012 14:54:45 +0000 (UTC)
commit 6b487a7088b9e429d885eae16969f0e5464af178
Author: Milan Crha <mcrha redhat com>
Date: Mon Apr 23 16:53:54 2012 +0200
Bug #668679 - Crash on insertion of NULL in e_destination_set_contact()
addressbook/libebook/e-destination.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/addressbook/libebook/e-destination.c b/addressbook/libebook/e-destination.c
index c9f2536..5e3139c 100644
--- a/addressbook/libebook/e-destination.c
+++ b/addressbook/libebook/e-destination.c
@@ -478,7 +478,8 @@ e_destination_set_contact (EDestination *dest,
e_destination_set_name (s_dest, name);
g_free (name);
- g_hash_table_insert (hash_table, g_strdup (id), s_dest);
+ if (id)
+ g_hash_table_insert (hash_table, g_strdup (id), s_dest);
lists_count--;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]