From: Fᴀʙɪᴇɴ Wᴇʀɴʟɪ Date: Tue, 2 Jul 2019 09:05:02 +0000 (+0200) Subject: Fix return code introduced by #3182 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=835a58c09ff7afd44627915c9274b16c5df0fb50;p=collectd.git Fix return code introduced by #3182 Change-Id: I0972f74f3fff05cf29fa9b0be383f0b0df1e6d03 Fixes: #3200 --- diff --git a/src/syslog.c b/src/syslog.c index d3be5c95..b4e2c0cf 100644 --- a/src/syslog.c +++ b/src/syslog.c @@ -56,9 +56,10 @@ static int sl_config(const char *key, const char *value) { } } else if (strcasecmp(key, "NotifyLevel") == 0) { notif_severity = parse_notif_severity(value); - if (notif_severity < 0) + if (notif_severity < 0) { ERROR("syslog: invalid notification severity [%s]", value); - return 1; + return 1; + } } return 0;