]> git.kaiwu.me - nginx.git/commitdiff
Scgi: do not push redundant NULL element into conf->params.
authorRoman Arutyunyan <arut@nginx.com>
Wed, 19 Nov 2014 14:33:21 +0000 (17:33 +0300)
committerRoman Arutyunyan <arut@nginx.com>
Wed, 19 Nov 2014 14:33:21 +0000 (17:33 +0300)
src/http/modules/ngx_http_scgi_module.c

index ccbfd326379273860638ddf3b6743e83e3557ccb..2c7a8af5dc7361b933568f8174b4b2775b83037e 100644 (file)
@@ -1670,13 +1670,6 @@ ngx_http_scgi_merge_params(ngx_conf_t *cf, ngx_http_scgi_loc_conf_t *conf,
 
     *code = (uintptr_t) NULL;
 
-    code = ngx_array_push_n(conf->params, sizeof(uintptr_t));
-    if (code == NULL) {
-        return NGX_ERROR;
-    }
-
-    *code = (uintptr_t) NULL;
-
     conf->header_params = headers_names.nelts;
 
     hash.hash = &conf->headers_hash;