aboutsummaryrefslogtreecommitdiffstats
path: root/mail/folder-browser.c
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@ximian.com>2003-07-16 03:47:57 +0800
committerFederico Mena Quintero <federico@src.gnome.org>2003-07-16 03:47:57 +0800
commit32380aa7c9a7d50f47d7b50780c560da6ce5fe3c (patch)
tree93114df8bd6407dbd96d4a137562fb75fc36e1ad /mail/folder-browser.c
parentfeff37573756a1e7f02079e32cee51bffec086a3 (diff)
downloadgsoc2013-evolution-32380aa7c9a7d50f47d7b50780c560da6ce5fe3c.tar.gz
gsoc2013-evolution-32380aa7c9a7d50f47d7b50780c560da6ce5fe3c.tar.zst
gsoc2013-evolution-32380aa7c9a7d50f47d7b50780c560da6ce5fe3c.zip
Handle invalid URIs, or more likely, the last empty element in a URI list
2003-07-15 Federico Mena Quintero <federico@ximian.com> * folder-browser.c (message_list_drag_data_received): Handle invalid URIs, or more likely, the last empty element in a URI list --- g_strsplit() will yield { "uri1", "", NULL }. Fixes #46398. * component-factory.c (destination_folder_handle_drop): Likewise. svn path=/trunk/; revision=21818
Diffstat (limited to 'mail/folder-browser.c')
-rw-r--r--mail/folder-browser.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mail/folder-browser.c b/mail/folder-browser.c
index b48f3f4b61..8a15cc4135 100644
--- a/mail/folder-browser.c
+++ b/mail/folder-browser.c
@@ -533,6 +533,10 @@ message_list_drag_data_received (ETree *tree, int row, ETreePath path, int col,
uri = camel_url_new (url, NULL);
g_free (url);
+
+ if (!uri)
+ continue;
+
url = uri->path;
uri->path = NULL;
camel_url_free (uri);