[gtk+] GtkPlacesSidebar: Fix an uninitialized variable in the error code path
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GtkPlacesSidebar: Fix an uninitialized variable in the error code path
- Date: Tue, 7 May 2013 12:03:41 +0000 (UTC)
commit 34c0deb00674cb74f0860497987703c6d431b8b0
Author: Kalev Lember <kalevlember gmail com>
Date: Tue May 7 13:41:21 2013 +0200
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.
gtk/gtkplacessidebar.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkplacessidebar.c b/gtk/gtkplacessidebar.c
index 310b6c7..87e0c5a 100644
--- a/gtk/gtkplacessidebar.c
+++ b/gtk/gtkplacessidebar.c
@@ -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) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]