1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-07 09:56:51 +03:00

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