No error code on regular exit

This commit is contained in:
Philippe Teuwen committed 2022-01-16 19:57:12 +01:00
1 parent 00a4895440
commit cbb976e320
3 files changed
+8 -1

No files matched your search

+1 -1
View File
@@ -282,7 +282,7 @@ static int CmdQuit(const char *Cmd) {
};
CLIExecWithReturn(ctx, Cmd, argtable, true);
CLIParserFree(ctx);
return PM3_EFATAL;
return PM3_SQUIT;
}
static int CmdRev(const char *Cmd) {
+5
View File
@@ -407,6 +407,11 @@ check_script:
// exit or quit
if (mainret == PM3_EFATAL)
break;
if (mainret == PM3_SQUIT) {
// Normal quit, map to 0
mainret = PM3_SUCCESS;
break;
}
}
free(cmd);
cmd = NULL;