Core: properly initialized written bytes counter in memory log.

This commit is contained in:
Valentin Bartenev 2015-05-19 19:27:07 +03:00
parent 1ac2ceeb8d
commit 5fd1f0fd59
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}