diff src/http/ngx_http_core_module.c @ 115:be27f922b9a2

nginx-0.0.1-2003-07-10-20:26:57 import
author Igor Sysoev <igor@sysoev.ru>
date Thu, 10 Jul 2003 16:26:57 +0000
parents ac69ab96328d
children 5bf52498665c
line wrap: on
line diff
--- a/src/http/ngx_http_core_module.c
+++ b/src/http/ngx_http_core_module.c
@@ -1061,10 +1061,9 @@ static char *ngx_set_error_log(ngx_conf_
 
     value = cf->args->elts;
 
-    ngx_test_null(lcf->err_log, ngx_log_create_errlog(cf->cycle),
+    ngx_test_null(lcf->err_log,
+                  ngx_log_create_errlog(cf->cycle, &value[1]),
                   NGX_CONF_ERROR);
 
-    lcf->err_log->file->name = value[1];
-
     return NGX_CONF_OK;
 }