]> git.kaiwu.me - nginx.git/commitdiff
Core: properly initialized written bytes counter in memory log.
authorValentin Bartenev <vbart@nginx.com>
Tue, 19 May 2015 16:27:07 +0000 (19:27 +0300)
committerValentin Bartenev <vbart@nginx.com>
Tue, 19 May 2015 16:27:07 +0000 (19:27 +0300)
src/core/ngx_log.c

index 2aea37440fac72398ac254f5056158c58dba870e..08938715d78fe9d0ad4eaadcb4c94a2d6e406598 100644 (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;
         }