From: Valentin Bartenev Date: Tue, 19 May 2015 16:27:07 +0000 (+0300) Subject: Core: properly initialized written bytes counter in memory log. X-Git-Tag: release-1.9.1~9 X-Git-Url: http://www.kaiwu.me/postgresql/commit/static/gitweb.js?a=commitdiff_plain;h=9275dc19e63aaf6c8df540526a3776bff3575115;p=nginx.git Core: properly initialized written bytes counter in memory log. --- 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; }