From 274e56a60256214d1f899c37f1c978e4b8470644 Mon Sep 17 00:00:00 2001 From: taiyu Date: Wed, 26 Aug 2015 16:27:01 -0700 Subject: fixed move_container bug, log prints before aborting --- sway/log.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sway/log.c') diff --git a/sway/log.c b/sway/log.c index 66898a28..efe00439 100644 --- a/sway/log.c +++ b/sway/log.c @@ -105,15 +105,15 @@ bool _sway_assert(bool condition, const char* format, ...) { return true; } -#ifndef NDEBUG - raise(SIGABRT); -#endif - va_list args; va_start(args, format); sway_log(L_ERROR, format, args); va_end(args); +#ifndef NDEBUG + raise(SIGABRT); +#endif + return false; } -- cgit v1.2.3-54-g00ecf