]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: checks: Remove wrong variable redeclaration
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 28 Apr 2020 07:46:20 +0000 (09:46 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 28 Apr 2020 07:46:23 +0000 (09:46 +0200)
When mysql-check option is parsed, the user variable is redeclared without any
reason. thus the redeclared variable is removed.

No backport needed.

src/checks.c

index 4279290b3f9647b2a26e25c68c1a13fa66c63580..774b28cf59f280d9375a3f75bbf43b37b4f2f535 100644 (file)
@@ -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) {