log: protect errno when we use assert_return()

This commit is contained in:
Lennart Poettering 2013-12-12 15:58:49 +01:00
parent ad5b215d1b
commit e5ca092c27

View file

@ -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) { 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."); log_assert(LOG_DEBUG, text, file, line, func, "Assertion '%s' failed at %s:%u, function %s(). Ignoring.");
} }