]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
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 2bfc1d8fc3f92ff003266de0c77e5ecf3f578a95..6529073fd4cec30e446ff70d6bc5eb593cf3ec0a 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;
                        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;
        }
                server_lpr = cmdline_lpr;
                goto success;
        }