summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-03-17 07:51:27 -0400
committerMatthias Clasen <mclasen@redhat.com>2021-03-17 07:51:27 -0400
commit600cbdb7ba8583f3a3425475f8f45ddc267c0ac9 (patch)
tree0f8033606407a5b24e1b4930a32aeb618de1f0b2
parent8b82993dde5bea985dac69e5ff940236db11f83b (diff)
downloadgtk+-600cbdb7ba8583f3a3425475f8f45ddc267c0ac9.tar.gz
treestore: Initialize some local variables
gcc 11 is warning that these might be used uninitialized otherwise.
-rw-r--r--gtk/gtktreestore.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk/gtktreestore.c b/gtk/gtktreestore.c
index c02dcd3a17..c542af00ba 100644
--- a/gtk/gtktreestore.c
+++ b/gtk/gtktreestore.c
@@ -2471,7 +2471,9 @@ gtk_tree_store_move (GtkTreeStore *tree_store,
GNode *parent, *node, *a, *b, *tmp, *tmp_a, *tmp_b;
int old_pos, new_pos, length, i, *order;
GtkTreePath *path = NULL, *tmppath, *pos_path = NULL;
- GtkTreeIter parent_iter, dst_a, dst_b;
+ GtkTreeIter parent_iter = { 0, };
+ GtkTreeIter dst_a = { 0, };
+ GtkTreeIter dst_b = { 0, };
int depth = 0;
gboolean handle_b = TRUE;