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) {