Skip to content

Commit

Permalink
BUG: Fix read of uninitialized variable.
Browse files Browse the repository at this point in the history
`tf_flag` wasn't initialized and it is read at line 2016
before any initialization.
  • Loading branch information
chestnykh committed Nov 15, 2023
1 parent 1852fe3 commit 50caf96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/db.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 50caf96

Please sign in to comment.