[evolution] Bug #705657 - Crash in em_utils_selection_set_urilist()
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Bug #705657 - Crash in em_utils_selection_set_urilist()
- Date: Thu, 8 Aug 2013 08:53:57 +0000 (UTC)
commit 8cbeb646cf77bacb55acc2f1912a0afd2fc5a0e3
Author: Milan Crha <mcrha redhat com>
Date: Thu Aug 8 10:53:31 2013 +0200
Bug #705657 - Crash in em_utils_selection_set_urilist()
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 0b65b63..749d3d1 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]