projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
581d26d
)
server: Get rid of a dead store.
author
Andre Noll
<maan@tuebingen.mpg.de>
Sun, 6 Aug 2017 11:36:51 +0000
(13:36 +0200)
committer
Andre 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
patch
|
blob
|
history
diff --git
a/server.c
b/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;
}