Wrong precedence for these chained less-than / greater-thans.

This commit is contained in:
Josh Kupershmidt 2015-07-24 07:27:30 -04:00
parent 949c0ad150
commit facbcf90dd

View File

@ -1200,14 +1200,13 @@ on_cleanup(void)
static void static void
exit_or_abort(int exitcode, int elevel) exit_or_abort(int exitcode, int elevel)
{ {
if (in_cleanup && FATAL > elevel) if (in_cleanup && FATAL > elevel)
{ {
/* oops, error in cleanup*/ /* oops, error in cleanup*/
call_atexit_callbacks(true); call_atexit_callbacks(true);
exit(exitcode); exit(exitcode);
} }
else if (FATAL <= elevel <= PANIC) else if (elevel >= FATAL && elevel <= PANIC)
{ {
/* on FATAL or PANIC */ /* on FATAL or PANIC */
call_atexit_callbacks(true); call_atexit_callbacks(true);