src/list.c

changeset 1497
cd53fb8703c1
parent 1487
0ff535033b78
--- a/src/list.c	Tue Nov 18 17:55:49 2025 +0100
+++ b/src/list.c	Wed Nov 19 19:42:05 2025 +0100
@@ -1030,7 +1030,7 @@
         CxIterator src_iter = cxListIterator(src);
         CxIterator other_iter = cxListIterator(other);
         while (cxIteratorValid(src_iter) || cxIteratorValid(other_iter)) {
-            void *src_elem, *other_elem;
+            void *src_elem = NULL, *other_elem = NULL;
             int d;
             if (!cxIteratorValid(src_iter)) {
                 other_elem = cxIteratorCurrent(other_iter);

mercurial