summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar taiyu <taiyu.len@gmail.com>2018-03-27 19:33:59 -0700
committerLibravatar taiyu <taiyu.len@gmail.com>2018-03-27 19:33:59 -0700
commit125d4fdf2e575b53d7c36b5147cf34c99516856f (patch)
tree5796c268a4310bf95e0c8002fc19e93e4acfed95
parentsave errno to avoid issues with it being overwritten (diff)
downloadsway-125d4fdf2e575b53d7c36b5147cf34c99516856f.tar.gz
sway-125d4fdf2e575b53d7c36b5147cf34c99516856f.tar.zst
sway-125d4fdf2e575b53d7c36b5147cf34c99516856f.zip
restore errno
-rw-r--r--common/log.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/log.c b/common/log.c
index 877534c8..1b46d58f 100644
--- a/common/log.c
+++ b/common/log.c
@@ -153,6 +153,7 @@ void sway_log_errno(log_importance_t verbosity, char* format, ...) {
153 } 153 }
154 fprintf(stderr, "\n"); 154 fprintf(stderr, "\n");
155 } 155 }
156 errno = errsv;
156} 157}
157 158
158bool _sway_assert(bool condition, const char *filename, int line, const char* format, ...) { 159bool _sway_assert(bool condition, const char *filename, int line, const char* format, ...) {