aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-03-18 11:13:01 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-03-18 11:13:01 +0800
commit5908c8f777f46df1fdcdc6ac7641b7b1f6ed3c5f (patch)
tree1cfe5642a655f18fb9cd5cebe96cf9ceb285cc3c
parent36c7b8c8ff6c8c711058788ff91a586527280e39 (diff)
downloadgsoc2013-evolution-5908c8f777f46df1fdcdc6ac7641b7b1f6ed3c5f.tar
gsoc2013-evolution-5908c8f777f46df1fdcdc6ac7641b7b1f6ed3c5f.tar.gz
gsoc2013-evolution-5908c8f777f46df1fdcdc6ac7641b7b1f6ed3c5f.tar.bz2
gsoc2013-evolution-5908c8f777f46df1fdcdc6ac7641b7b1f6ed3c5f.tar.lz
gsoc2013-evolution-5908c8f777f46df1fdcdc6ac7641b7b1f6ed3c5f.tar.xz
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
-rw-r--r--composer/ChangeLog6
-rw-r--r--composer/e-msg-composer-hdrs.c5
2 files changed, 11 insertions, 0 deletions
diff --git a/composer/ChangeLog b/composer/ChangeLog
index ccdb44e096..f0054fa588 100644
--- a/composer/ChangeLog
+++ b/composer/ChangeLog
@@ -1,3 +1,9 @@
+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.
+
2001-03-13 Dan Winship <danw@ximian.com>
* e-msg-composer-attachment.c (update_mime_type): Use
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);