aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/trie.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/trie.c')
-rw-r--r--src/utils/trie.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/trie.c b/src/utils/trie.c
index 72a62f6..db64e1d 100644
--- a/src/utils/trie.c
+++ b/src/utils/trie.c
@@ -110,7 +110,7 @@ clean:
void*
b_trie_lookup(b_trie_t *trie, const char *key)
{
- if (trie->root == NULL || key == NULL)
+ if (trie == NULL || trie->root == NULL || key == NULL)
return NULL;
b_trie_node_t *parent = trie->root;