aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorLarry Ewing <lewing@ximian.com>2001-07-07 05:47:18 +0800
committerLarry Ewing <lewing@src.gnome.org>2001-07-07 05:47:18 +0800
commit214d03a44a266edbba2e82ab776b950a2bacbaf3 (patch)
tree281c7cc96b27574b7c44e1481c2fd5163f430d89 /mail
parentde47d3065f5a91902d1a190cb4d96fba312aa37f (diff)
downloadgsoc2013-evolution-214d03a44a266edbba2e82ab776b950a2bacbaf3.tar.gz
gsoc2013-evolution-214d03a44a266edbba2e82ab776b950a2bacbaf3.tar.zst
gsoc2013-evolution-214d03a44a266edbba2e82ab776b950a2bacbaf3.zip
add a NULL check since that is a valid return.
2001-07-06 Larry Ewing <lewing@ximian.com> * mail-callbacks.c (composer_send_cb): add a NULL check since that is a valid return. svn path=/trunk/; revision=10866
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog6
-rw-r--r--mail/mail-callbacks.c5
2 files changed, 10 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 3dc30678fb..4a14acfeaa 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,8 @@
+2001-07-06 Larry Ewing <lewing@ximian.com>
+
+ * mail-callbacks.c (composer_send_cb): add a NULL check since that
+ is a valid return.
+
2001-07-06 Peter Williams <peterw@ximian.com>
* mail-format.c (format_mime_part): Prevent infinite recursion when
@@ -31,6 +36,7 @@
2001-07-06 Peter Williams <peterw@ximian.com>
+>>>>>>> 1.1360
* mail-callbacks.c (composer_postpone_cb): Don't free the psd here --
it will be freed on the "destroy" signal.
diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c
index 989698bfac..33b7c2ee30 100644
--- a/mail/mail-callbacks.c
+++ b/mail/mail-callbacks.c
@@ -417,8 +417,11 @@ composer_send_cb (EMsgComposer *composer, gpointer data)
message = composer_get_message (composer);
if (!message)
return;
+
transport = mail_config_get_default_transport ();
-
+ if (!transport)
+ return;
+
send = g_malloc (sizeof (*send));
send->psd = psd;
send->composer = composer;