[gtk/matthiasc/for-master: 5/6] treestore: Initialize some local variables
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/for-master: 5/6] treestore: Initialize some local variables
- Date: Wed, 17 Mar 2021 11:58:25 +0000 (UTC)
commit 600cbdb7ba8583f3a3425475f8f45ddc267c0ac9
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Mar 17 07:51:27 2021 -0400
treestore: Initialize some local variables
gcc 11 is warning that these might be used uninitialized
otherwise.
gtk/gtktreestore.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]