diff options
author | Federico Mena Quintero <federico@ximian.com> | 2003-07-16 03:47:57 +0800 |
---|---|---|
committer | Federico Mena Quintero <federico@src.gnome.org> | 2003-07-16 03:47:57 +0800 |
commit | 32380aa7c9a7d50f47d7b50780c560da6ce5fe3c (patch) | |
tree | 93114df8bd6407dbd96d4a137562fb75fc36e1ad /mail/component-factory.c | |
parent | feff37573756a1e7f02079e32cee51bffec086a3 (diff) | |
download | gsoc2013-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/component-factory.c')
-rw-r--r-- | mail/component-factory.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mail/component-factory.c b/mail/component-factory.c index a228868a58..b3077f5699 100644 --- a/mail/component-factory.c +++ b/mail/component-factory.c @@ -630,6 +630,10 @@ destination_folder_handle_drop (EvolutionShellComponentDndDestinationFolder *des uri = camel_url_new (url, NULL); g_free (url); + + if (!uri) + continue; + url = uri->path; uri->path = NULL; camel_url_free (uri); |