mirror of
https://github.com/nginx/nginx.git
synced 2025-06-11 12:22:41 +08:00
Core: properly initialized written bytes counter in memory log.
This commit is contained in:
parent
3670726bd3
commit
9275dc19e6
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user