Skip to content

Commit

Permalink
fix hattrie_iter_with_prefix() for trie node
Browse files Browse the repository at this point in the history
  • Loading branch information
luikore committed Sep 15, 2014
1 parent a5da6eb commit 4556cf4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/hat-trie.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ static node_ptr hattrie_find(hattrie_t* T, const char **key, size_t *len, int* f
if (!(node.t->flag & NODE_HAS_VAL)) {
*found = 0;
}
*key += 1;
*len -= 1;
return node;
}

Expand Down

0 comments on commit 4556cf4

Please sign in to comment.