aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-utils.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2005-07-29 09:40:56 +0800
committerMichael Zucci <zucchi@src.gnome.org>2005-07-29 09:40:56 +0800
commit29bded8a17c8cdde0611bd98f4d39b47a8abd585 (patch)
treec1d33c38367cce7eadd38e5af2d1637b5dfdbcb1 /mail/em-utils.c
parented48823f7fafe2c680b958801a1d938402540528 (diff)
downloadgsoc2013-evolution-29bded8a17c8cdde0611bd98f4d39b47a8abd585.tar.gz
gsoc2013-evolution-29bded8a17c8cdde0611bd98f4d39b47a8abd585.tar.zst
gsoc2013-evolution-29bded8a17c8cdde0611bd98f4d39b47a8abd585.zip
** See bug #311440.
2005-07-28 Not Zed <NotZed@Ximian.com> ** See bug #311440. * em-utils.c (em_utils_in_addressbook): handle NULL address. svn path=/trunk/; revision=29920
Diffstat (limited to 'mail/em-utils.c')
-rw-r--r--mail/em-utils.c3
1 files changed, 2 insertions, 1 deletions
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);