Skip to content

Commit

Permalink
MINOR: startup: fix unused value reported by coverity
Browse files Browse the repository at this point in the history
Unused 0 is assigned to ret, as it's rewritten by error code of read_cfg().
This issue was reported by coverity.
  • Loading branch information
vkssv authored and wtarreau committed Aug 8, 2024
1 parent da82f08 commit aae2ff7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/haproxy.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit aae2ff7

Please sign in to comment.