From 214d03a44a266edbba2e82ab776b950a2bacbaf3 Mon Sep 17 00:00:00 2001 From: Larry Ewing Date: Fri, 6 Jul 2001 21:47:18 +0000 Subject: add a NULL check since that is a valid return. 2001-07-06 Larry Ewing * mail-callbacks.c (composer_send_cb): add a NULL check since that is a valid return. svn path=/trunk/; revision=10866 --- mail/mail-callbacks.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'mail/mail-callbacks.c') 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; -- cgit