summaryrefslogtreecommitdiffhomepage
path: root/vm.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2022-02-03 16:26:16 +0100
committerJo-Philipp Wich <jo@mein.io>2022-02-03 16:26:44 +0100
commit30592950f08c6ee521a939c9ea90fcf9b65b88b0 (patch)
treecae905b25a206e5655aa747bf4ad6aa8c0c1d90e /vm.c
parent98e59bfb615015c8533f4270d44061216697af3c (diff)
vm: NULL-initialize pointer to make cppcheck happy
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm.c b/vm.c
index f6886ba..6e3713a 100644
--- a/vm.c
+++ b/vm.c
@@ -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;