core: (postfix commit 5b95df87) return to invoke locally scoped destructors

This commit is contained in:
Tom Henderson
2020-05-07 14:43:39 -07:00
parent 2eb0d831f5
commit d79f5f3ce6

View File

@@ -207,13 +207,9 @@ main (int argc, char *argv[])
outputValidated = false;
}
if (outputValidated)
if (outputValidated == false)
{
exit (0);
}
else
{
std::cerr << "Program internal checking failed; exiting with error" << std::endl;
exit (1);
std::cerr << "Program internal checking failed; returning with error" << std::endl;
return (1);
}
}