aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2013-08-08 16:53:31 +0800
committerMilan Crha <mcrha@redhat.com>2013-08-08 16:53:31 +0800
commit8cbeb646cf77bacb55acc2f1912a0afd2fc5a0e3 (patch)
tree0bbcf0ef0c30154763c94f5eb0068b17966d71c6 /mail
parent52a48c15e0972e8bc7da95fd26d6cb299b6ab111 (diff)
downloadgsoc2013-evolution-8cbeb646cf77bacb55acc2f1912a0afd2fc5a0e3.tar
gsoc2013-evolution-8cbeb646cf77bacb55acc2f1912a0afd2fc5a0e3.tar.gz
gsoc2013-evolution-8cbeb646cf77bacb55acc2f1912a0afd2fc5a0e3.tar.bz2
gsoc2013-evolution-8cbeb646cf77bacb55acc2f1912a0afd2fc5a0e3.tar.lz
gsoc2013-evolution-8cbeb646cf77bacb55acc2f1912a0afd2fc5a0e3.tar.xz
gsoc2013-evolution-8cbeb646cf77bacb55acc2f1912a0afd2fc5a0e3.tar.zst
gsoc2013-evolution-8cbeb646cf77bacb55acc2f1912a0afd2fc5a0e3.zip
Bug #705657 - Crash in em_utils_selection_set_urilist()
Diffstat (limited to 'mail')
-rw-r--r--mail/em-utils.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/mail/em-utils.c b/mail/em-utils.c
index 0b65b635e1..749d3d12fe 100644
--- a/mail/em-utils.c
+++ b/mail/em-utils.c
@@ -952,6 +952,12 @@ em_utils_selection_set_urilist (GtkSelectionData *data,
gchar *save_file_format;
gboolean save_as_mbox;
+ g_return_if_fail (uids != NULL);
+
+ /* can be 0 with empty folders */
+ if (!uids->len)
+ return;
+
tmpdir = e_mkdtemp ("drag-n-drop-XXXXXX");
if (tmpdir == NULL)
return;