[fix] initialize next_id by zero in trie_new_from_cstring_array function

This commit is contained in:
Egor Shestakov
2024-06-06 00:34:55 +07:00
parent 8f2066b1d3
commit aa712e60c1

View File

@@ -85,7 +85,7 @@ trie_t *trie_new_from_cstring_array(cstring_array *strings) {
char *key; char *key;
uint32_t i; uint32_t i;
uint32_t next_id; uint32_t next_id = 0;
trie_t *trie = trie_new(); trie_t *trie = trie_new();