# HG changeset patch # User Mike Becker # Date 1724153816 -7200 # Node ID 9e7f0db6a725369b9c46a58654a141b5f51d40ad # Parent 56a908924510bf5598e87a41ba6c9797ba821c98 fix cx_tree_search() not remembering root as a valid candidate diff -r 56a908924510 -r 9e7f0db6a725 src/tree.c --- a/src/tree.c Tue Aug 20 12:39:35 2024 +0200 +++ b/src/tree.c Tue Aug 20 13:36:56 2024 +0200 @@ -169,8 +169,8 @@ // remember a candidate for adding the data // also remember the exact return code from sfunc - void *candidate = NULL; - int ret_candidate = -1; + void *candidate = (void *) root; + int ret_candidate = ret; // process the working stack while (work_size > 0) {