[gtk+/gtk-3-16] placessidebar: do not crash if uris is NULL
- From: Dominique Leuenberger <dleuen src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-16] placessidebar: do not crash if uris is NULL
- Date: Thu, 29 Oct 2015 16:33:41 +0000 (UTC)
commit d90e9e40588916dad8f5ad29c49a68398e8c5faa
Author: Dominique Leuenberger <dimstar opensuse org>
Date: Thu Oct 29 13:56:18 2015 +0100
placessidebar: do not crash if uris is NULL
On Drag'n'Drop actions across system boundaries (VM host to guest), the
happen to be null.
https://bugzilla.gnome.org/show_bug.cgi?id=757298
gtk/gtkplacessidebar.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkplacessidebar.c b/gtk/gtkplacessidebar.c
index b8d01c7..8c9eeae 100644
--- a/gtk/gtkplacessidebar.c
+++ b/gtk/gtkplacessidebar.c
@@ -1883,7 +1883,7 @@ build_file_list_from_uris (const gchar **uris)
gint i;
result = NULL;
- for (i = 0; uris[i]; i++)
+ for (i = 0; uris && uris[i]; i++)
{
GFile *file;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]