aboutsummaryrefslogtreecommitdiff
path: root/sway/log.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/log.c')
-rw-r--r--sway/log.c8
1 files changed, 4 insertions, 4 deletions
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;
}