From 252c9b84da76185c5ddbea560a5d61f0f5cc8177 Mon Sep 17 00:00:00 2001 From: Sergey Kandaurov Date: Wed, 23 Sep 2015 14:20:13 +0300 Subject: [PATCH] Fixed ngx_http_js_loc_conf_t initialization. It is expected to be prezeroed. --- nginx/ngx_http_js_module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.47.3