Skip to content

Commit

Permalink
Core: properly initialized written bytes counter in memory log.
Browse files Browse the repository at this point in the history
  • Loading branch information
VBart committed May 19, 2015
1 parent 3670726 commit 9275dc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/ngx_log.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 9275dc1

Please sign in to comment.