GtkPlacesSidebar: Fix an uninitialized variable in the error code path

Initialize it to NULL early so that we won't try to free an
uninitialized variable when handling an error.
This commit is contained in:
Kalev Lember 2013-05-07 13:41:21 +02:00
parent 19e6db7997
commit 34c0deb006

View File

@ -1606,6 +1606,7 @@ drag_motion_callback (GtkTreeView *tree_view,
action = 0;
drop_as_bookmarks = FALSE;
path = NULL;
if (!sidebar->drag_data_received) {
if (!get_drag_data (tree_view, context, time)) {
@ -1613,7 +1614,6 @@ drag_motion_callback (GtkTreeView *tree_view,
}
}
path = NULL;
res = compute_drop_position (tree_view, x, y, &path, &pos, sidebar);
if (!res) {