From: Christopher Faulet Date: Tue, 28 Apr 2020 07:46:20 +0000 (+0200) Subject: BUG/MINOR: checks: Remove wrong variable redeclaration X-Git-Tag: v2.2-dev7~65 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=587c414071f0b32a5385e517d23947289bc12dee;p=thirdparty%2Fhaproxy.git BUG/MINOR: checks: Remove wrong variable redeclaration When mysql-check option is parsed, the user variable is redeclared without any reason. thus the redeclared variable is removed. No backport needed. --- diff --git a/src/checks.c b/src/checks.c index 4279290b3f..774b28cf59 100644 --- a/src/checks.c +++ b/src/checks.c @@ -6340,7 +6340,6 @@ int proxy_parse_mysql_check_opt(char **args, int cur_arg, struct proxy *curpx, s cur_arg += 2; if (*args[cur_arg]) { - char *user; int packetlen, userlen; if (strcmp(args[cur_arg], "user") != 0) {