aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2015-05-19 19:27:07 +0300
committerValentin Bartenev <vbart@nginx.com>2015-05-19 19:27:07 +0300
commit9275dc19e63aaf6c8df540526a3776bff3575115 (patch)
tree9e26df591978db3763216086d4750cc2380b8aa1 /src
parent3670726bd31eb7309abf77246ee7306d0205f382 (diff)
downloadnginx-9275dc19e63aaf6c8df540526a3776bff3575115.tar.gz
nginx-9275dc19e63aaf6c8df540526a3776bff3575115.zip
Core: properly initialized written bytes counter in memory log.
Diffstat (limited to 'src')
-rw-r--r--src/core/ngx_log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/ngx_log.c b/src/core/ngx_log.c
index 2aea37440..08938715d 100644
--- a/src/core/ngx_log.c
+++ b/src/core/ngx_log.c
@@ -609,7 +609,7 @@ ngx_log_set_log(ngx_conf_t *cf, ngx_log_t **head)
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;
}