fix uninitialized simple_destructor - fixes #443

Sun, 06 Oct 2024 12:32:28 +0200

author
Mike Becker <universe@uap-core.de>
date
Sun, 06 Oct 2024 12:32:28 +0200
changeset 910
5c2af036103f
parent 909
f4e00bb3f3b2
child 911
db829e54539e

fix uninitialized simple_destructor - fixes #443

src/tree.c file | annotate | diff | comparison | revisions
--- a/src/tree.c	Sat Oct 05 19:05:47 2024 +0200
+++ b/src/tree.c	Sun Oct 06 12:32:28 2024 +0200
@@ -812,6 +812,7 @@
     tree->node_create = create_func;
     tree->search = search_func;
     tree->search_data = search_data_func;
+    tree->simple_destructor = NULL;
     tree->advanced_destructor = (cx_destructor_func2) cxFree;
     tree->destructor_data = (void *) allocator;
     tree->loc_parent = loc_parent;

mercurial