log: protect errno from log_syntax_invalid_utf8_internal()
Potentially, utf8_escape_invalid() called by log_syntax_invalid_utf8_internal() may update errno.
This commit is contained in:
@@ -1679,6 +1679,7 @@ int log_syntax_invalid_utf8_internal(
|
||||
const char *func,
|
||||
const char *rvalue) {
|
||||
|
||||
PROTECT_ERRNO;
|
||||
_cleanup_free_ char *p = NULL;
|
||||
|
||||
if (rvalue)
|
||||
|
||||
Reference in New Issue
Block a user