Skip to content

Commit

Permalink
vm: NULL-initialize pointer to make cppcheck happy
Browse files Browse the repository at this point in the history
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
  • Loading branch information
jow- committed Feb 3, 2022
1 parent 98e59bf commit 3059295
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vm.c
Expand Up @@ -1562,7 +1562,7 @@ uc_vm_value_arith(uc_vm_t *vm, uc_vm_insn_t operation, uc_value_t *value, uc_val
static void
uc_vm_insn_update_var(uc_vm_t *vm, uc_vm_insn_t insn)
{
uc_value_t *name, *val, *inc = uc_vm_stack_pop(vm);
uc_value_t *name, *val = NULL, *inc = uc_vm_stack_pop(vm);
uc_value_t *scope, *next;
bool found;

Expand Down

0 comments on commit 3059295

Please sign in to comment.