0.7.4 access_log fixe

Maxim Dounin mdounin at mdounin.ru
Tue Jul 1 04:20:50 MSD 2008


Hello!

On Mon, Jun 30, 2008 at 08:03:25PM +0400, Igor Sysoev wrote:

>Исправление для 0.7.4.

Ну и ещё до кучи.

Maxim Dounin
-------------- next part --------------
# HG changeset patch
# User Maxim Dounin <mdounin at mdounin.ru>
# Date 1214871498 -14400
# Node ID 764e4d1295d9bec759f73ea80c6bca12d9854f21
# Parent  3bb1f991efc04db9519b604e81a1332390f5015d
[mq]: patch-log-unset

diff --git a/src/http/modules/ngx_http_log_module.c b/src/http/modules/ngx_http_log_module.c
--- a/src/http/modules/ngx_http_log_module.c
+++ b/src/http/modules/ngx_http_log_module.c
@@ -777,6 +777,8 @@ ngx_http_log_merge_loc_conf(ngx_conf_t *
     if (log == NULL) {
         return NGX_CONF_ERROR;
     }
+
+    ngx_memzero(log, sizeof(ngx_http_log_t));
 
     log->file = ngx_conf_open_file(cf->cycle, &ngx_http_access_log);
     if (log->file == NULL) {


More information about the nginx-ru mailing list