Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ctrie.c
Original file line number Diff line number Diff line change
Expand Up @@ -391,8 +391,8 @@ int ctrie_remove(struct ctrie *t, char *key)
struct ctnode *pp, *p;
size_t ppi, pi;
struct ctnode *n = find3(t, key, &pp, &ppi, &p, &pi);
// TODO: Do we want to allow deletion of non-existent keys?
assert(n != NULL);
if (!n)
return 1;
assert(n->flags & F_WORD);
n->flags &= ~F_WORD;
if (n->nchild > 1)
Expand Down