From de2b35586274a5a728a696e63104b76c80224238 Mon Sep 17 00:00:00 2001 From: belliash Date: Sun, 17 Mar 2019 18:47:17 +0100 Subject: [PATCH] Return 0, when display error message. --- engine/vm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/engine/vm.c b/engine/vm.c index 1b383a1..3d58229 100644 --- a/engine/vm.c +++ b/engine/vm.c @@ -2063,6 +2063,7 @@ static sxi32 VmByteCodeExec( pVm->sVmConsumer.xConsumer(SyBlobData(&pTos->sBlob), SyBlobLength(&pTos->sBlob), pVm->sVmConsumer.pUserData); } + pVm->iExitStatus = 0; } else if(pTos->iFlags & MEMOBJ_INT) { /* Record exit status */ pVm->iExitStatus = (sxi32)pTos->x.iVal;