diff options
author | Ruslan Ermilov <ru@nginx.com> | 2017-04-12 22:21:04 +0300 |
---|---|---|
committer | Ruslan Ermilov <ru@nginx.com> | 2017-04-12 22:21:04 +0300 |
commit | cac361718c741fd2bfe13d43aa2fabf23d0a2ca4 (patch) | |
tree | f2c3b602b9c3f6805cbde455139e70a97f6894eb /src/http/modules/ngx_http_gzip_static_module.c | |
parent | f9471674427403a1e77a4d405450f7747f204722 (diff) | |
download | nginx-cac361718c741fd2bfe13d43aa2fabf23d0a2ca4.tar.gz nginx-cac361718c741fd2bfe13d43aa2fabf23d0a2ca4.zip |
Use ngx_calloc_buf() where appropriate.
Diffstat (limited to 'src/http/modules/ngx_http_gzip_static_module.c')
-rw-r--r-- | src/http/modules/ngx_http_gzip_static_module.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/modules/ngx_http_gzip_static_module.c b/src/http/modules/ngx_http_gzip_static_module.c index b9294dd94..1d87cd4ef 100644 --- a/src/http/modules/ngx_http_gzip_static_module.c +++ b/src/http/modules/ngx_http_gzip_static_module.c @@ -248,7 +248,7 @@ ngx_http_gzip_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; } |