[fix] initialize next_id by zero in trie_new_from_cstring_array function
This commit is contained in:
@@ -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();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user