From: Sergey Kandaurov Date: Wed, 23 Sep 2015 11:20:13 +0000 (+0300) Subject: Fixed ngx_http_js_loc_conf_t initialization. X-Git-Tag: 0.1.0~129 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=252c9b84da76185c5ddbea560a5d61f0f5cc8177;p=njs.git Fixed ngx_http_js_loc_conf_t initialization. It is expected to be prezeroed. --- diff --git a/nginx/ngx_http_js_module.c b/nginx/ngx_http_js_module.c index a888744b..5df2138d 100644 --- a/nginx/ngx_http_js_module.c +++ b/nginx/ngx_http_js_module.c @@ -1176,7 +1176,7 @@ ngx_http_js_create_loc_conf(ngx_conf_t *cf) { ngx_http_js_loc_conf_t *conf; - conf = ngx_palloc(cf->pool, sizeof(ngx_http_js_loc_conf_t)); + conf = ngx_pcalloc(cf->pool, sizeof(ngx_http_js_loc_conf_t)); if (conf == NULL) { return NULL; }