diff options
author | Philip Withnall <philip.withnall@collabora.co.uk> | 2013-11-20 17:37:15 +0000 |
---|---|---|
committer | Philip Withnall <philip.withnall@collabora.co.uk> | 2013-12-02 10:36:26 +0000 |
commit | 380150361b8ab22f9a14d4f68de865d10e6ec62e (patch) | |
tree | a2061fcefeada26a5b988cebba00528db0f8a135 /gtk/gtktreeselection.c | |
parent | 1adf0becc2c1fd64fdf6f197f0c4733c20bb232a (diff) | |
download | gtk+-380150361b8ab22f9a14d4f68de865d10e6ec62e.tar.gz |
gtktreeselection: Eliminate a dead assignment
This is technically a dead assignment, but is nice to retain for
clarity. Moving it to the variable definition shuts scan-build up.
https://bugzilla.gnome.org/show_bug.cgi?id=712760
Diffstat (limited to 'gtk/gtktreeselection.c')
-rw-r--r-- | gtk/gtktreeselection.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gtk/gtktreeselection.c b/gtk/gtktreeselection.c index 65c09900c8..926c88dbb4 100644 --- a/gtk/gtktreeselection.c +++ b/gtk/gtktreeselection.c @@ -480,7 +480,7 @@ gtk_tree_selection_get_selected (GtkTreeSelection *selection, GtkRBTree *tree; GtkRBNode *node; GtkTreePath *anchor_path; - gboolean retval; + gboolean retval = FALSE; gboolean found_node; g_return_val_if_fail (GTK_IS_TREE_SELECTION (selection), FALSE); @@ -502,8 +502,6 @@ gtk_tree_selection_get_selected (GtkTreeSelection *selection, if (anchor_path == NULL) return FALSE; - retval = FALSE; - found_node = !_gtk_tree_view_find_node (priv->tree_view, anchor_path, &tree, |