From 29bded8a17c8cdde0611bd98f4d39b47a8abd585 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Fri, 29 Jul 2005 01:40:56 +0000 Subject: ** See bug #311440. 2005-07-28 Not Zed ** See bug #311440. * em-utils.c (em_utils_in_addressbook): handle NULL address. svn path=/trunk/; revision=29920 --- mail/ChangeLog | 8 ++++++-- mail/em-utils.c | 3 ++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/mail/ChangeLog b/mail/ChangeLog index 35b91d7d1a..507cb441ab 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,14 +1,18 @@ +2005-07-28 Not Zed + + ** See bug #311440. + + * em-utils.c (em_utils_in_addressbook): handle NULL address. + 2005-07-28 Praveen Kumar * em-account-editor.c (emae_check_complete) : Update the "Full Name" text entry with the detected real name of the user. Fixes bug 311778 - 2005-07-27 Srinivasa Ragavan * mail-config.glade: Changed "Host" to "Server" - 2005-07-27 Not Zed * mail-send-recv.c (get_folders): hack to make it honour the diff --git a/mail/em-utils.c b/mail/em-utils.c index 5bd70e5be3..a432bed390 100644 --- a/mail/em-utils.c +++ b/mail/em-utils.c @@ -1871,7 +1871,8 @@ em_utils_in_addressbook(CamelInternetAddress *iaddr) time_t now; /* TODO: check all addresses? */ - if (!camel_internet_address_get(iaddr, 0, NULL, &addr)) + if (iaddr == NULL + || !camel_internet_address_get(iaddr, 0, NULL, &addr)) return FALSE; pthread_mutex_lock(&emu_addr_lock); -- cgit v1.2.3