From: Andre Noll Date: Sun, 17 May 2020 15:08:33 +0000 (+0200) Subject: Avoid duplicate error message. X-Git-Tag: v1.0.2~33 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=bf0f03c00f6de518d01b6cb1e94c1d447e5cd3b1;p=dss.git Avoid duplicate error message. If parse_config_file() encounters an error, it logs the error *and* returns the error code, which causes the error message to be logged again. Fix this by removing the log statement from parse_config_file(). --- diff --git a/dss.c b/dss.c index f61f335..84b6751 100644 --- a/dss.c +++ b/dss.c @@ -1263,8 +1263,6 @@ close_fd: close(fd); out: free(config_file); - if (ret < 0) - DSS_EMERG_LOG(("%s\n", dss_strerror(-ret))); return ret; }