comparison src/http/modules/ngx_http_scgi_module.c @ 5906:548f704c1907

Scgi: do not push redundant NULL element into conf->params.
author Roman Arutyunyan <arut@nginx.com>
date Wed, 19 Nov 2014 17:33:21 +0300
parents 2f7e557eab5b
children 195561ef367f
comparison
equal deleted inserted replaced
5905:2f7e557eab5b 5906:548f704c1907
1668 return NGX_ERROR; 1668 return NGX_ERROR;
1669 } 1669 }
1670 1670
1671 *code = (uintptr_t) NULL; 1671 *code = (uintptr_t) NULL;
1672 1672
1673 code = ngx_array_push_n(conf->params, sizeof(uintptr_t));
1674 if (code == NULL) {
1675 return NGX_ERROR;
1676 }
1677
1678 *code = (uintptr_t) NULL;
1679
1680 conf->header_params = headers_names.nelts; 1673 conf->header_params = headers_names.nelts;
1681 1674
1682 hash.hash = &conf->headers_hash; 1675 hash.hash = &conf->headers_hash;
1683 hash.key = ngx_hash_key_lc; 1676 hash.key = ngx_hash_key_lc;
1684 hash.max_size = 512; 1677 hash.max_size = 512;