From c5aa784caa493f34ba7db1818a000ff366287cca Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Date: Thu, 2 Feb 2023 14:02:15 +0100 Subject: [PATCH] Reset ret after reading the last event --- src/emu/ovniemu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/emu/ovniemu.c b/src/emu/ovniemu.c index cc33aaa..411d8af 100644 --- a/src/emu/ovniemu.c +++ b/src/emu/ovniemu.c @@ -32,6 +32,7 @@ main(int argc, char *argv[]) err("emulation aborts!"); } else { err("emulation ends"); + ret = 0; } if (emu_finish(emu) != 0) {