diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-12-12 15:58:49 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-12-12 15:59:13 +0100 |
commit | e5ca092c27c3fd725e5a8467c36d778dff5fbf98 (patch) | |
tree | 63f7b38f099fe911efddbb2d6f64cde0337c917e /src/shared | |
parent | ad5b215d1bb06c908832de9297360b4266aef471 (diff) |
log: protect errno when we use assert_return()
Diffstat (limited to 'src/shared')
-rw-r--r-- | src/shared/log.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shared/log.c b/src/shared/log.c index c654b86228..2404de85e3 100644 --- a/src/shared/log.c +++ b/src/shared/log.c @@ -713,6 +713,7 @@ _noreturn_ void log_assert_failed_unreachable(const char *text, const char *file } void log_assert_failed_return(const char *text, const char *file, int line, const char *func) { + PROTECT_ERRNO; log_assert(LOG_DEBUG, text, file, line, func, "Assertion '%s' failed at %s:%u, function %s(). Ignoring."); } |