aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/ChangeLog4
-rw-r--r--mail/mail-callbacks.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 807436c18f..82adefbbf7 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,5 +1,9 @@
2001-01-10 Jeffrey Stedfast <fejj@helixcode.com>
+ * mail-callbacks.c (send_queued_mail): Prevent Federico's segfault.
+
+2001-01-10 Jeffrey Stedfast <fejj@helixcode.com>
+
* mail-config-druid.c (auth_type_changed): Clear the password
entry if it's not allowed.
(transport_type_changed): Clear the hostname if it is not allowed
diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c
index ee9de6d195..f26380773a 100644
--- a/mail/mail-callbacks.c
+++ b/mail/mail-callbacks.c
@@ -211,7 +211,7 @@ send_queued_mail (GtkWidget *widget, gpointer user_data)
}
account = mail_config_get_default_account ();
- if (!account->transport) {
+ if (!account || !account->transport) {
GtkWidget *win = gtk_widget_get_ancestor (GTK_WIDGET (user_data),
GTK_TYPE_WINDOW);