diff options
author | Milan Crha <mcrha@redhat.com> | 2013-08-08 16:54:03 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2013-08-08 16:54:03 +0800 |
commit | 87364872b4c73c8d28d106eb7041ef3220f9a4e7 (patch) | |
tree | f4a6f50140fefb35a84828b49b2f8155d4723305 | |
parent | 8b8ddbd16eeb3217a7a15b59e8f966b61d989977 (diff) | |
download | gsoc2013-evolution-87364872b4c73c8d28d106eb7041ef3220f9a4e7.tar gsoc2013-evolution-87364872b4c73c8d28d106eb7041ef3220f9a4e7.tar.gz gsoc2013-evolution-87364872b4c73c8d28d106eb7041ef3220f9a4e7.tar.bz2 gsoc2013-evolution-87364872b4c73c8d28d106eb7041ef3220f9a4e7.tar.lz gsoc2013-evolution-87364872b4c73c8d28d106eb7041ef3220f9a4e7.tar.xz gsoc2013-evolution-87364872b4c73c8d28d106eb7041ef3220f9a4e7.tar.zst gsoc2013-evolution-87364872b4c73c8d28d106eb7041ef3220f9a4e7.zip |
Bug #705657 - Crash in em_utils_selection_set_urilist()
-rw-r--r-- | mail/em-utils.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mail/em-utils.c b/mail/em-utils.c index 18977c73aa..b2ffc929c5 100644 --- a/mail/em-utils.c +++ b/mail/em-utils.c @@ -1004,6 +1004,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; |