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
This commit is contained in:
Matthias Clasen 2013-12-19 08:16:30 -05:00
parent cc0c521c4c
commit 98bdc9321e

View File

@ -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);