commit | d432b3e5c875aa8b24ae993ae19c1beb7f5485b9 | [log] [tgz] |
---|---|---|
author | Christopher Faulet <cfaulet@haproxy.com> | Wed Sep 18 11:16:02 2019 +0200 |
committer | Christopher Faulet <cfaulet@haproxy.com> | Wed Sep 18 11:20:55 2019 +0200 |
tree | 3185d216e21d878306e45a5c8768f590ca5bcac4 | |
parent | a99db937c59c7427af946250438e0c18c37caa87 [diff] |
CLEANUP: fcgi-app: Remove useless test on fcgi_conf pointer fcgi_conf was already tested after allocation. No need to test it again. This patch fixes the isssue #285.
diff --git a/src/fcgi-app.c b/src/fcgi-app.c index 4db296f..aeda821 100644 --- a/src/fcgi-app.c +++ b/src/fcgi-app.c
@@ -620,8 +620,6 @@ fcgi_conf->name = strdup(args[1]); LIST_INIT(&fcgi_conf->param_rules); LIST_INIT(&fcgi_conf->hdr_rules); - if (!fcgi_conf) - goto err; /* Register the filter */ fconf = calloc(1, sizeof(*fconf));