From 70e1a9a96beefa114a7480628602e83761d327ae Mon Sep 17 00:00:00 2001 From: Dmitry Chestnykh Date: Wed, 15 Nov 2023 21:27:23 +0300 Subject: [PATCH] BUG: Fix read of uninitialized variable. `tf_flag` wasn't initialized and it is read at line 2016 before any initialization. Signed-off-by: Dmitry Chestnykh --- src/db.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/db.c b/src/db.c index ddc01c3c..84446686 100644 --- a/src/db.c +++ b/src/db.c @@ -1982,7 +1982,7 @@ static struct db_sys_list *_db_rule_gen_32(const struct arch_def *arch, struct db_sys_list *s_new; const struct db_api_arg *chain = rule->args; struct db_arg_chain_tree *c_iter = NULL, *c_prev = NULL; - bool tf_flag; + bool tf_flag = false; s_new = zmalloc(sizeof(*s_new)); if (s_new == NULL)