commit | bf49b296d25b8d8052f462e2d6023cb68cf132be | [log] [tgz] |
---|---|---|
author | Valentin Bartenev <vbart@nginx.com> | Tue May 19 19:27:07 2015 +0300 |
committer | Valentin Bartenev <vbart@nginx.com> | Tue May 19 19:27:07 2015 +0300 |
tree | 9e26df591978db3763216086d4750cc2380b8aa1 | |
parent | 228cb335115121ed44372809823cdae7a04ac81b [diff] |
Core: properly initialized written bytes counter in memory log.
diff --git a/src/core/ngx_log.c b/src/core/ngx_log.c index 2aea374..0893871 100644 --- a/src/core/ngx_log.c +++ b/src/core/ngx_log.c
@@ -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; }