diff options
Diffstat (limited to 'src/utils/trie.c')
-rw-r--r-- | src/utils/trie.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/utils/trie.c b/src/utils/trie.c index e0ac1af..f3933a3 100644 --- a/src/utils/trie.c +++ b/src/utils/trie.c @@ -82,9 +82,8 @@ b_trie_insert(b_trie_t *trie, const char *key, void *data) parent = tmp; - if (previous == NULL || parent != NULL) { + if (previous == NULL || parent != NULL) goto clean; - } current = b_malloc(sizeof(b_trie_node_t)); current->key = *key; |