aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-callbacks.c
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/mail-callbacks.c
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/mail-callbacks.c')
-rw-r--r--mail/mail-callbacks.c5
1 files changed, 4 insertions, 1 deletions
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;