[gtk+] GtkPlacesSidebar: avoid a crash



commit 98bdc9321eb3cd841347e7380279a9ef68a14778
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Dec 19 08:16:30 2013 -0500

    GtkPlacesSidebar: avoid a crash
    
    Be more careful when comparing uris during DND - they may
    be NULL.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=720264

 gtk/gtkplacessidebar.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkplacessidebar.c b/gtk/gtkplacessidebar.c
index 675a756..979700f 100644
--- a/gtk/gtkplacessidebar.c
+++ b/gtk/gtkplacessidebar.c
@@ -1415,7 +1415,7 @@ compute_drop_position (GtkTreeView              *tree_view,
                           PLACES_SIDEBAR_COLUMN_URI, &uri,
                           -1);
 
-      if (strcmp (uri, "recent:///") == 0)
+      if (g_strcmp0 (uri, "recent:///") == 0)
         drop_possible = FALSE;
 
       g_free (uri);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]