[nginx] Scgi: do not push redundant NULL element into conf->params.

Roman Arutyunyan arut at nginx.com
Wed Nov 19 14:37:55 UTC 2014


details:   http://hg.nginx.org/nginx/rev/548f704c1907
branches:  
changeset: 5906:548f704c1907
user:      Roman Arutyunyan <arut at nginx.com>
date:      Wed Nov 19 17:33:21 2014 +0300
description:
Scgi: do not push redundant NULL element into conf->params.

diffstat:

 src/http/modules/ngx_http_scgi_module.c |  7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)

diffs (17 lines):

diff -r 2f7e557eab5b -r 548f704c1907 src/http/modules/ngx_http_scgi_module.c
--- a/src/http/modules/ngx_http_scgi_module.c	Tue Nov 18 20:41:12 2014 +0300
+++ b/src/http/modules/ngx_http_scgi_module.c	Wed Nov 19 17:33:21 2014 +0300
@@ -1670,13 +1670,6 @@ ngx_http_scgi_merge_params(ngx_conf_t *c
 
     *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;



More information about the nginx-devel mailing list