From aa712e60c1ff651efcd5712d11174b561f40d842 Mon Sep 17 00:00:00 2001 From: Egor Shestakov Date: Thu, 6 Jun 2024 00:34:55 +0700 Subject: [PATCH] [fix] initialize next_id by zero in trie_new_from_cstring_array function --- src/trie_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/trie_utils.c b/src/trie_utils.c index 12079006a..0856b1520 100644 --- a/src/trie_utils.c +++ b/src/trie_utils.c @@ -85,7 +85,7 @@ trie_t *trie_new_from_cstring_array(cstring_array *strings) { char *key; uint32_t i; - uint32_t next_id; + uint32_t next_id = 0; trie_t *trie = trie_new();