From: Roman Arutyunyan Date: Wed, 19 Nov 2014 14:33:21 +0000 (+0300) Subject: Scgi: do not push redundant NULL element into conf->params. X-Git-Url: http://www.kaiwu.me/postgresql/commit/static/gitweb.js?a=commitdiff_plain;h=3b33056522dcf79b5450e06ebc8186857e7b2868;p=nginx.git Scgi: do not push redundant NULL element into conf->params. --- diff --git a/src/http/modules/ngx_http_scgi_module.c b/src/http/modules/ngx_http_scgi_module.c index ccbfd3263..2c7a8af5d 100644 --- a/src/http/modules/ngx_http_scgi_module.c +++ b/src/http/modules/ngx_http_scgi_module.c @@ -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;