changeset 2078:9acbc5e7bcbd

fix variable access_log merging
author Igor Sysoev <igor@sysoev.ru>
date Mon, 30 Jun 2008 15:51:28 +0000
parents 479440385e35
children 333ef9e18a59
files src/http/modules/ngx_http_log_module.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/http/modules/ngx_http_log_module.c
+++ b/src/http/modules/ngx_http_log_module.c
@@ -761,7 +761,8 @@ ngx_http_log_merge_loc_conf(ngx_conf_t *
         return NGX_CONF_OK;
     }
 
-    *conf = *prev;
+    conf->logs = prev->logs;
+    conf->off = prev->off;
 
     if (conf->logs || conf->off) {
         return NGX_CONF_OK;