From 622ee65eb612e8f492b17538df95ed2e2d709466 Mon Sep 17 00:00:00 2001 From: Jon Trowbridge Date: Sat, 7 Jul 2001 05:47:23 +0000 Subject: Make sure that our destination string (dest_str) is not the empty string 2001-07-07 Jon Trowbridge * e-msg-composer-hdrs.c (set_recipients): Make sure that our destination string (dest_str) is not the empty string before we try to use it. svn path=/trunk/; revision=10880 --- composer/ChangeLog | 6 ++++++ composer/e-msg-composer-hdrs.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'composer') diff --git a/composer/ChangeLog b/composer/ChangeLog index 89efea4808..bf6733120e 100644 --- a/composer/ChangeLog +++ b/composer/ChangeLog @@ -1,3 +1,9 @@ +2001-07-07 Jon Trowbridge + + * e-msg-composer-hdrs.c (set_recipients): Make sure that our + destination string (dest_str) is not the empty string before we + try to use it. + 2001-07-06 Larry Ewing * e-msg-composer.c (autosave_manager_new): add missing static. diff --git a/composer/e-msg-composer-hdrs.c b/composer/e-msg-composer-hdrs.c index 836ca2f4f8..e29f351fd5 100644 --- a/composer/e-msg-composer-hdrs.c +++ b/composer/e-msg-composer-hdrs.c @@ -647,7 +647,7 @@ set_recipients (CamelMimeMessage *msg, GtkWidget *entry_widget, const gchar *typ dest_str = e_destination_get_address_textv (destv); g_message ("destination is: %s", dest_str); - if (dest_str) { + if (dest_str && *dest_str) { addr = camel_internet_address_new (); camel_address_unformat (CAMEL_ADDRESS (addr), dest_str); -- cgit v1.2.3