changeset 6149:2c21bfe3da89

Core: properly initialized written bytes counter in memory log.
author Valentin Bartenev <vbart@nginx.com>
date Tue, 19 May 2015 19:27:07 +0300
parents bf8b6534db3a
children 0371ef1c24a9
files src/core/ngx_log.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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_
             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;
         }