aboutsummaryrefslogtreecommitdiffstats
path: root/sway/log.c
diff options
context:
space:
mode:
authorLibravatar taiyu <taiyu.len@gmail.com>2015-08-26 16:27:01 -0700
committerLibravatar taiyu <taiyu.len@gmail.com>2015-08-26 16:27:01 -0700
commit274e56a60256214d1f899c37f1c978e4b8470644 (patch)
treee0f7f77e41abd84da02208d7a09b610411c58fbb /sway/log.c
parentMerge pull request #137 from minus7/json (diff)
downloadsway-274e56a60256214d1f899c37f1c978e4b8470644.tar.gz
sway-274e56a60256214d1f899c37f1c978e4b8470644.tar.zst
sway-274e56a60256214d1f899c37f1c978e4b8470644.zip
fixed move_container bug, log prints before aborting
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, ...) {
105 return true; 105 return true;
106 } 106 }
107 107
108#ifndef NDEBUG
109 raise(SIGABRT);
110#endif
111
112 va_list args; 108 va_list args;
113 va_start(args, format); 109 va_start(args, format);
114 sway_log(L_ERROR, format, args); 110 sway_log(L_ERROR, format, args);
115 va_end(args); 111 va_end(args);
116 112
113#ifndef NDEBUG
114 raise(SIGABRT);
115#endif
116
117 return false; 117 return false;
118} 118}
119 119