aboutsummaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/common')
-rw-r--r--src/common/utils.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/common/utils.c b/src/common/utils.c
index 1ed79bf..97fa671 100644
--- a/src/common/utils.c
+++ b/src/common/utils.c
@@ -615,10 +615,8 @@ bc_trie_foreach_node(bc_trie_node_t *node, bc_string_t *str,
if (node == NULL || str == NULL || func == NULL)
return;
- if (node->key == '\0') {
+ if (node->key == '\0')
func(str->str, node->data, user_data);
- return;
- }
if (node->child != NULL) {
bc_string_t *child = bc_string_dup(str);