critical: fixes uninitialized memory in tree iterator

Sun, 04 May 2025 11:46:13 +0200

author
Mike Becker <universe@uap-core.de>
date
Sun, 04 May 2025 11:46:13 +0200
changeset 1314
25108c15e2d4
parent 1313
5012728b9e91
child 1315
b4c3e0b4c3d5

critical: fixes uninitialized memory in tree iterator

regression relates to #632

src/tree.c file | annotate | diff | comparison | revisions
--- a/src/tree.c	Sun May 04 11:30:10 2025 +0200
+++ b/src/tree.c	Sun May 04 11:46:13 2025 +0200
@@ -305,7 +305,7 @@
 
     if (children == NULL) {
         // search for the next node
-        void *next;
+        void *next = NULL;
         cx_tree_iter_search_next:
         // check if there is a sibling, but only if we are not a (subtree-)root
         if (iter->exiting) {

mercurial