Skip to content

Commit

Permalink
Stray assertion.
Browse files Browse the repository at this point in the history
I'm not sure why I thought this was neccessary; I tested and the trie code seems happy with an empty string. Which is fortunate, because I'm a believer in recursive datastructures.
  • Loading branch information
katef committed Aug 20, 2024
1 parent c08782a commit d73682b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/libre/re_strings.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ int
re_strings_add_raw(struct re_strings *g, const void *p, size_t n, const fsm_end_id_t *endid)
{
assert(p != NULL);
assert(n > 0);

return trie_add_word((struct trie_graph *) g, p, n, endid) != NULL;
}
Expand Down

0 comments on commit d73682b

Please sign in to comment.