From e5ca092c27c3fd725e5a8467c36d778dff5fbf98 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 12 Dec 2013 15:58:49 +0100 Subject: [PATCH] log: protect errno when we use assert_return() --- src/shared/log.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/shared/log.c b/src/shared/log.c index c654b8622..2404de85e 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."); } -- 2.30.2