Make sure that our destination string (dest_str) is not the empty string

2001-07-07  Jon Trowbridge  <trow@ximian.com>

	* 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
This commit is contained in:
Jon Trowbridge
2001-07-07 05:47:23 +00:00
committed by Jon Trowbridge
parent b950c435e4
commit 622ee65eb6
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2001-07-07 Jon Trowbridge <trow@ximian.com>
* 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 <lewing@ximian.com>
* e-msg-composer.c (autosave_manager_new): add missing static.

View File

@ -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);