Mercurial > hg > nginx
changeset 6149:2c21bfe3da89
Core: properly initialized written bytes counter in memory log.
author | Valentin Bartenev <vbart@nginx.com> |
---|---|
date | Tue, 19 May 2015 19:27:07 +0300 |
parents | bf8b6534db3a |
children | 0371ef1c24a9 |
files | src/core/ngx_log.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/core/ngx_log.c Mon May 18 16:05:44 2015 +0300 +++ b/src/core/ngx_log.c Tue May 19 19:27:07 2015 +0300 @@ -609,7 +609,7 @@ return NGX_CONF_ERROR; } - buf = ngx_palloc(cf->pool, sizeof(ngx_log_memory_buf_t)); + buf = ngx_pcalloc(cf->pool, sizeof(ngx_log_memory_buf_t)); if (buf == NULL) { return NGX_CONF_ERROR; }