comparison src/http/modules/ngx_http_log_module.c @ 2080:a24c7009de0b

NULL script in default access_log
author Igor Sysoev <igor@sysoev.ru>
date Tue, 01 Jul 2008 06:26:48 +0000
parents 9acbc5e7bcbd
children c8039b26a949
comparison
equal deleted inserted replaced
2079:333ef9e18a59 2080:a24c7009de0b
781 log->file = ngx_conf_open_file(cf->cycle, &ngx_http_access_log); 781 log->file = ngx_conf_open_file(cf->cycle, &ngx_http_access_log);
782 if (log->file == NULL) { 782 if (log->file == NULL) {
783 return NGX_CONF_ERROR; 783 return NGX_CONF_ERROR;
784 } 784 }
785 785
786 log->script = NULL;
786 log->disk_full_time = 0; 787 log->disk_full_time = 0;
787 log->error_log_time = 0; 788 log->error_log_time = 0;
788 789
789 lmcf = ngx_http_conf_get_module_main_conf(cf, ngx_http_log_module); 790 lmcf = ngx_http_conf_get_module_main_conf(cf, ngx_http_log_module);
790 fmt = lmcf->formats.elts; 791 fmt = lmcf->formats.elts;