fix missing pointer initializations

Tue, 29 Oct 2024 16:47:19 +0100

author
Mike Becker <universe@uap-core.de>
date
Tue, 29 Oct 2024 16:47:19 +0100
changeset 950
37e7f92de46b
parent 949
c2ba65ea8d31
child 951
8f6d6556380a

fix missing pointer initializations

src/linked_list.c file | annotate | diff | comparison | revisions
--- a/src/linked_list.c	Tue Oct 29 16:08:37 2024 +0100
+++ b/src/linked_list.c	Tue Oct 29 16:47:19 2024 +0100
@@ -840,7 +840,7 @@
         left = j;
         right = i;
     }
-    cx_linked_list_node *nleft, *nright;
+    cx_linked_list_node *nleft = NULL, *nright = NULL;
     if (left < mid && right < mid) {
         // case 1: both items left from mid
         nleft = cx_ll_node_at(ll, left);

mercurial