aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_file_cache.c
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@nginx.com>2017-04-12 22:21:04 +0300
committerRuslan Ermilov <ru@nginx.com>2017-04-12 22:21:04 +0300
commitcac361718c741fd2bfe13d43aa2fabf23d0a2ca4 (patch)
treef2c3b602b9c3f6805cbde455139e70a97f6894eb /src/http/ngx_http_file_cache.c
parentf9471674427403a1e77a4d405450f7747f204722 (diff)
downloadnginx-cac361718c741fd2bfe13d43aa2fabf23d0a2ca4.tar.gz
nginx-cac361718c741fd2bfe13d43aa2fabf23d0a2ca4.zip
Use ngx_calloc_buf() where appropriate.
Diffstat (limited to 'src/http/ngx_http_file_cache.c')
-rw-r--r--src/http/ngx_http_file_cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ngx_http_file_cache.c b/src/http/ngx_http_file_cache.c
index 8c75f95f9..b635b354e 100644
--- a/src/http/ngx_http_file_cache.c
+++ b/src/http/ngx_http_file_cache.c
@@ -1577,7 +1577,7 @@ ngx_http_cache_send(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;
}