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 | 97ad9ab9841a438801b7feabf7b9fb238e8b5012 (diff) | |
download | sway-125d4fdf2e575b53d7c36b5147cf34c99516856f.zip sway-125d4fdf2e575b53d7c36b5147cf34c99516856f.tar.gz sway-125d4fdf2e575b53d7c36b5147cf34c99516856f.tar.bz2 |
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 877534c..1b46d58 100644 --- a/common/log.c +++ b/common/log.c @@ -153,6 +153,7 @@ void sway_log_errno(log_importance_t verbosity, char* format, ...) { } fprintf(stderr, "\n"); } + errno = errsv; } bool _sway_assert(bool condition, const char *filename, int line, const char* format, ...) { |