]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: fcgi-app; Remove useless assignment to NULL
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 17 May 2023 07:40:14 +0000 (09:40 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 17 May 2023 07:42:37 +0000 (09:42 +0200)
When the fcgi configuration is checked and fcgi rules are created, a useless
assignment to NULL is reported by Covertiy. Let's remove it.

This patch should fix the coverity report #2161.

src/fcgi-app.c

index e0f3232f9ccd123e63ea0686910cda0085ef1eb9..16c3c81bb5c3281c6e955637f5135c58265e7921 100644 (file)
@@ -270,7 +270,6 @@ static int fcgi_flt_check(struct proxy *px, struct flt_conf *fconf)
                        LIST_APPEND(&fcgi_conf->param_rules, &rule->list);
                else /* FCGI_RULE_PASS_HDR/FCGI_RULE_HIDE_HDR */
                        LIST_APPEND(&fcgi_conf->hdr_rules, &rule->list);
-               rule = NULL;
        }
        return 0;