From 8b14d4031c4baa7cba530442cae484fb0588b630 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Wed, 4 Sep 2002 19:01:27 +0000 Subject: Made sure account->id->address is not NULL before adding it to the hash 2002-09-04 Jeffrey Stedfast * mail-callbacks.c (mail_generate_reply): Made sure account->id->address is not NULL before adding it to the hash table. This is to prevent bug #29877 from crashing, although it is still an invalid error condition. svn path=/trunk/; revision=17969 --- mail/mail-callbacks.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mail/mail-callbacks.c') diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c index 4a0dd5646d..85c08753d1 100644 --- a/mail/mail-callbacks.c +++ b/mail/mail-callbacks.c @@ -1012,7 +1012,8 @@ mail_generate_reply (CamelFolder *folder, CamelMimeMessage *message, const char l = accounts; while (l) { account = l->data; - g_hash_table_insert (account_hash, (char *) account->id->address, (void *) account); + if (account->id->address) + g_hash_table_insert (account_hash, (char *) account->id->address, (void *) account); l = l->next; } -- cgit v1.2.3