Skip to content
Snippets Groups Projects
Commit 96f241f5 authored by Jan Včelák's avatar Jan Včelák :rocket:
Browse files

fix: missing assignment to result during hattrie iteration

refs #181
parent dd8aa45a
No related branches found
No related tags found
No related merge requests found
......@@ -373,7 +373,7 @@ static int node_apply(node_ptr node, int (*f)(value_t*,void*), void* d)
result = node_apply(node.t->xs[i], f, d);
}
if (result == TRIE_EOK && *node.flag & NODE_HAS_VAL) {
f(&node.t->val, d);
result = f(&node.t->val, d);
}
if (result != TRIE_EOK) {
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment