server: Get rid of a dead store.
authorAndre Noll <maan@tuebingen.mpg.de>
Sun, 6 Aug 2017 11:36:51 +0000 (13:36 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Sat, 12 Aug 2017 17:22:02 +0000 (19:22 +0200)
We jump to the success label which sets ret no a non-negative value.
Found by the clang static analyzer.

server.c

index 2bfc1d8..6529073 100644 (file)
--- a/server.c
+++ b/server.c
@@ -196,7 +196,6 @@ void parse_config_or_die(bool reload)
                        goto free_cf;
                if (ret == -ERRNO_TO_PARA_ERROR(ENOENT) && OPT_GIVEN(CONFIG_FILE))
                        goto free_cf;
-               ret = 0;
                server_lpr = cmdline_lpr;
                goto success;
        }