aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2002-09-05 03:01:27 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-09-05 03:01:27 +0800
commit8b14d4031c4baa7cba530442cae484fb0588b630 (patch)
treead4a111a4d268f2e184711ae5c73fd0a2bfb50ee /mail
parent9e44da3d325c9a2516ff07e33f44918c115e6a04 (diff)
downloadgsoc2013-evolution-8b14d4031c4baa7cba530442cae484fb0588b630.tar.gz
gsoc2013-evolution-8b14d4031c4baa7cba530442cae484fb0588b630.tar.zst
gsoc2013-evolution-8b14d4031c4baa7cba530442cae484fb0588b630.zip
Made sure account->id->address is not NULL before adding it to the hash
2002-09-04 Jeffrey Stedfast <fejj@ximian.com> * 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
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog7
-rw-r--r--mail/mail-callbacks.c3
2 files changed, 9 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 83e80e3e86..ebbd0c17f5 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,10 @@
+2002-09-04 Jeffrey Stedfast <fejj@ximian.com>
+
+ * 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.
+
2002-09-04 Dan Winship <danw@ximian.com>
* folder-info.c (get_prop): Remove the "Get!" printf.
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;
}