From aae2ff76913ace47e82ad121a018fad8c5b55eb9 Mon Sep 17 00:00:00 2001 From: Valentine Krasnobaeva Date: Thu, 8 Aug 2024 18:54:28 +0200 Subject: [PATCH] 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. --- src/haproxy.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/haproxy.c b/src/haproxy.c index c607941ad3b03..0c1aeacb787d7 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