[gtk+] gtktreeselection: Fix a potential use of uninitialised variables



commit 8e3b49969905182c903dc62f0f6e6debefefe973
Author: Philip Withnall <philip withnall collabora co uk>
Date:   Wed Nov 20 17:39:02 2013 +0000

    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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtktreeselection.c b/gtk/gtktreeselection.c
index 778d764..1f6ae9b 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;


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