Skip to content

Commit 036af61

Browse files
authored
Merge pull request #666 from Vedingrot/fix_uninitialized_var
[fix] initialize next_id by zero in trie_new_from_cstring_array function
2 parents 252ed78 + aa712e6 commit 036af61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/trie_utils.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ trie_t *trie_new_from_cstring_array(cstring_array *strings) {
8585
char *key;
8686
uint32_t i;
8787

88-
uint32_t next_id;
88+
uint32_t next_id = 0;
8989

9090
trie_t *trie = trie_new();
9191

0 commit comments

Comments
 (0)