From aa3607f744ec2fbb943763fa1fe1bec075fd4c37 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Tue, 10 Aug 2021 12:08:33 +0200 Subject: [PATCH] Fix emu memset initialization --- emu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emu.c b/emu.c index 3bd1d4e..40bb39a 100644 --- a/emu.c +++ b/emu.c @@ -576,7 +576,7 @@ write_row_cpu(struct ovni_emu *emu) static void emu_init(struct ovni_emu *emu, int argc, char *argv[]) { - memset(emu, 0, sizeof(emu)); + memset(emu, 0, sizeof(*emu)); parse_args(emu, argc, argv);