log: protect errno when we use assert_return()
This commit is contained in:
parent
ad5b215d1b
commit
e5ca092c27
|
@ -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.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue