aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/trie.c
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2015-11-04 01:31:20 -0200
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2015-11-04 01:31:20 -0200
commit5be9458de0fe21aaebd43cee6fd0c084b4464a68 (patch)
tree6f30cc155b26ed11b808b3d02c8d9c973d4e4593 /src/utils/trie.c
parent1ed6d31c8f97c71fdaa2eef8b575ba14d1437a33 (diff)
downloadblogc-5be9458de0fe21aaebd43cee6fd0c084b4464a68.tar.gz
blogc-5be9458de0fe21aaebd43cee6fd0c084b4464a68.tar.bz2
blogc-5be9458de0fe21aaebd43cee6fd0c084b4464a68.zip
content-parser: implemented youtube directive
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;