From bf0f03c00f6de518d01b6cb1e94c1d447e5cd3b1 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sun, 17 May 2020 17:08:33 +0200 Subject: [PATCH] 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(). --- dss.c | 2 -- 1 file changed, 2 deletions(-) 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; } -- 2.39.5