From: Valentine Krasnobaeva Date: Thu, 8 Aug 2024 16:54:28 +0000 (+0200) Subject: MINOR: startup: fix unused value reported by coverity X-Git-Tag: v3.1-dev6~60 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=aae2ff76913ace47e82ad121a018fad8c5b55eb9;p=thirdparty%2Fhaproxy.git MINOR: startup: fix unused value reported by coverity Unused 0 is assigned to ret, as it's rewritten by error code of read_cfg(). This issue was reported by coverity. --- diff --git a/src/haproxy.c b/src/haproxy.c index c607941ad3..0c1aeacb78 100644 --- a/src/haproxy.c +++ b/src/haproxy.c @@ -1976,12 +1976,11 @@ static void init(int argc, char **argv) { char *progname = global.log_tag.area; int err_code = 0; - int ret = 0; struct proxy *px; struct post_check_fct *pcf; struct pre_check_fct *prcf; struct cfgfile *cfg, *cfg_tmp; - int ideal_maxconn; + int ret, ideal_maxconn; const char *cc, *cflags, *opts; #ifdef USE_OPENSSL