From 07b3075fad90a63f3a40320e3e30958e6f450c3b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Wed, 5 May 2021 15:51:41 +0200 Subject: [PATCH] basic/log: use SYNTHETIC_ERRNO in one more place --- src/basic/log.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/basic/log.c b/src/basic/log.c index b4c16a3e1b9..fb183ea9e75 100644 --- a/src/basic/log.c +++ b/src/basic/log.c @@ -1431,10 +1431,9 @@ int log_syntax_invalid_utf8_internal( if (rvalue) p = utf8_escape_invalid(rvalue); - log_syntax_internal(unit, level, config_file, config_line, 0, file, line, func, - "String is not UTF-8 clean, ignoring assignment: %s", strna(p)); - - return -EINVAL; + return log_syntax_internal(unit, level, config_file, config_line, + SYNTHETIC_ERRNO(EINVAL), file, line, func, + "String is not UTF-8 clean, ignoring assignment: %s", strna(p)); } void log_set_upgrade_syslog_to_journal(bool b) { -- 2.47.3