aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
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;
}