diff options
author | taiyu <taiyu.len@gmail.com> | 2018-03-27 19:33:59 -0700 |
---|---|---|
committer | taiyu <taiyu.len@gmail.com> | 2018-03-27 19:33:59 -0700 |
commit | 125d4fdf2e575b53d7c36b5147cf34c99516856f (patch) | |
tree | 5796c268a4310bf95e0c8002fc19e93e4acfed95 | |
parent | save errno to avoid issues with it being overwritten (diff) | |
download | sway-125d4fdf2e575b53d7c36b5147cf34c99516856f.tar.gz sway-125d4fdf2e575b53d7c36b5147cf34c99516856f.tar.zst sway-125d4fdf2e575b53d7c36b5147cf34c99516856f.zip |
restore errno
-rw-r--r-- | common/log.c | 1 |
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 | ||
158 | bool _sway_assert(bool condition, const char *filename, int line, const char* format, ...) { | 159 | bool _sway_assert(bool condition, const char *filename, int line, const char* format, ...) { |