From 8e3b49969905182c903dc62f0f6e6debefefe973 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Wed, 20 Nov 2013 17:39:02 +0000 Subject: [PATCH] gtktreeselection: Fix a potential use of uninitialised variables Found by scan-build. https://bugzilla.gnome.org/show_bug.cgi?id=712760 --- gtk/gtktreeselection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtktreeselection.c b/gtk/gtktreeselection.c index 778d76427a..1f6ae9b7e6 100644 --- a/gtk/gtktreeselection.c +++ b/gtk/gtktreeselection.c @@ -1297,7 +1297,7 @@ gtk_tree_selection_real_modify_range (GtkTreeSelection *selection, GtkTreePath *end_path) { GtkTreeSelectionPrivate *priv = selection->priv; - GtkRBNode *start_node, *end_node; + GtkRBNode *start_node = NULL, *end_node = NULL; GtkRBTree *start_tree, *end_tree; GtkTreePath *anchor_path = NULL; gboolean dirty = FALSE;