From 5908c8f777f46df1fdcdc6ac7641b7b1f6ed3c5f Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Sun, 18 Mar 2001 03:13:01 +0000 Subject: Make sure the reply_to text is non-NULL before trying to pass it off to 2001-03-17 Jeffrey Stedfast * 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 --- composer/ChangeLog | 6 ++++++ composer/e-msg-composer-hdrs.c | 5 +++++ 2 files changed, 11 insertions(+) (limited to 'composer') 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 + + * 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 * 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); -- cgit v1.2.3