summaryrefslogtreecommitdiff
path: root/src/shared/log.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-12-12 15:58:49 +0100
committerLennart Poettering <lennart@poettering.net>2013-12-12 15:59:13 +0100
commite5ca092c27c3fd725e5a8467c36d778dff5fbf98 (patch)
tree63f7b38f099fe911efddbb2d6f64cde0337c917e /src/shared/log.c
parentad5b215d1bb06c908832de9297360b4266aef471 (diff)
log: protect errno when we use assert_return()
Diffstat (limited to 'src/shared/log.c')
-rw-r--r--src/shared/log.c1
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.");
}