diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-02-26 08:00:32 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-02-26 08:00:32 +0800 |
commit | 42904d799377d856cb13363eb2f1530b71d8762f (patch) | |
tree | 3687442f393dc817cf435c8f40c26911275d913b /mail/mail-callbacks.c | |
parent | 802f47f2bf27e9c667b85ab30edb5799198cfaa8 (diff) | |
download | gsoc2013-evolution-42904d799377d856cb13363eb2f1530b71d8762f.tar gsoc2013-evolution-42904d799377d856cb13363eb2f1530b71d8762f.tar.gz gsoc2013-evolution-42904d799377d856cb13363eb2f1530b71d8762f.tar.bz2 gsoc2013-evolution-42904d799377d856cb13363eb2f1530b71d8762f.tar.lz gsoc2013-evolution-42904d799377d856cb13363eb2f1530b71d8762f.tar.xz gsoc2013-evolution-42904d799377d856cb13363eb2f1530b71d8762f.tar.zst gsoc2013-evolution-42904d799377d856cb13363eb2f1530b71d8762f.zip |
Abort if the message is NULL (which is valid if an error occured).
2001-02-25 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (composer_postpone_cb): Abort if the message is
NULL (which is valid if an error occured).
(composer_send_cb): Same.
svn path=/trunk/; revision=8389
Diffstat (limited to 'mail/mail-callbacks.c')
-rw-r--r-- | mail/mail-callbacks.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c index 4afabc13c0..ca4a484ef3 100644 --- a/mail/mail-callbacks.c +++ b/mail/mail-callbacks.c @@ -301,6 +301,8 @@ composer_send_cb (EMsgComposer *composer, gpointer data) /* Get the message */ message = e_msg_composer_get_message (composer); + if (message == NULL) + return; /* Check for no recipients */ iaddr = camel_mime_message_get_recipients (message, CAMEL_RECIPIENT_TYPE_TO); @@ -347,6 +349,8 @@ composer_postpone_cb (EMsgComposer *composer, gpointer data) /* Get the message */ message = e_msg_composer_get_message (composer); + if (message == NULL) + return; /* Check for no subject */ subject = camel_mime_message_get_subject (message); |