From cac361718c741fd2bfe13d43aa2fabf23d0a2ca4 Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Wed, 12 Apr 2017 22:21:04 +0300 Subject: Use ngx_calloc_buf() where appropriate. --- src/http/modules/ngx_http_static_module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/http/modules/ngx_http_static_module.c') diff --git a/src/http/modules/ngx_http_static_module.c b/src/http/modules/ngx_http_static_module.c index f2435a78d..b0513be1c 100644 --- a/src/http/modules/ngx_http_static_module.c +++ b/src/http/modules/ngx_http_static_module.c @@ -233,7 +233,7 @@ ngx_http_static_handler(ngx_http_request_t *r) /* we need to allocate all before the header would be sent */ - b = ngx_pcalloc(r->pool, sizeof(ngx_buf_t)); + b = ngx_calloc_buf(r->pool); if (b == NULL) { return NGX_HTTP_INTERNAL_SERVER_ERROR; } -- cgit