diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-03-18 11:13:01 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-03-18 11:13:01 +0800 |
commit | 5908c8f777f46df1fdcdc6ac7641b7b1f6ed3c5f (patch) | |
tree | 1cfe5642a655f18fb9cd5cebe96cf9ceb285cc3c /composer/e-msg-composer-hdrs.c | |
parent | 36c7b8c8ff6c8c711058788ff91a586527280e39 (diff) | |
download | gsoc2013-evolution-5908c8f777f46df1fdcdc6ac7641b7b1f6ed3c5f.tar.gz gsoc2013-evolution-5908c8f777f46df1fdcdc6ac7641b7b1f6ed3c5f.tar.zst gsoc2013-evolution-5908c8f777f46df1fdcdc6ac7641b7b1f6ed3c5f.zip |
Make sure the reply_to text is non-NULL before trying to pass it off to
2001-03-17 Jeffrey Stedfast <fejj@ximian.com>
* e-msg-composer-hdrs.c (e_msg_composer_hdrs_get_reply_to): Make
sure the reply_to text is non-NULL before trying to pass it off to
the address parser.
svn path=/trunk/; revision=8791
Diffstat (limited to 'composer/e-msg-composer-hdrs.c')
-rw-r--r-- | composer/e-msg-composer-hdrs.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/composer/e-msg-composer-hdrs.c b/composer/e-msg-composer-hdrs.c index 39d5c81647..aa723d3822 100644 --- a/composer/e-msg-composer-hdrs.c +++ b/composer/e-msg-composer-hdrs.c @@ -805,6 +805,11 @@ e_msg_composer_hdrs_get_reply_to (EMsgComposerHdrs *hdrs) gtk_object_get (GTK_OBJECT (hdrs->priv->reply_to.entry), "text", &reply_to, NULL); + if (!reply_to || *reply_to == '\0') { + g_free (reply_to); + return NULL; + } + addr = camel_internet_address_new (); if (camel_address_unformat (CAMEL_ADDRESS (addr), reply_to) == -1) { g_free (reply_to); |