]> git.tue.mpg.de Git - dss.git/commitdiff
Avoid duplicate error message.
authorAndre Noll <maan@tuebingen.mpg.de>
Sun, 17 May 2020 15:08:33 +0000 (17:08 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Sun, 17 May 2020 15:08:33 +0000 (17:08 +0200)
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

diff --git a/dss.c b/dss.c
index f61f33597d7863e236a804d6c0541934e6ced8d5..84b6751a70b9d0a20002a30d47155b937118114f 100644 (file)
--- 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;
 }