Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2008-12-12 19:40:12 +0300
committerIgor Sysoev <igor@sysoev.ru>2008-12-12 19:40:12 +0300
commit4f395dec87dacfde58a211a948babaed306f3a69 (patch)
treeb25ed3ac6988400f2533d192169e13cfb29729fb /src/http/modules/ngx_http_index_module.c
parent3dde93ba6c1e9be80e43ac497601f65e515357e3 (diff)
remove seldom used variable
Diffstat (limited to 'src/http/modules/ngx_http_index_module.c')
-rw-r--r--src/http/modules/ngx_http_index_module.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/http/modules/ngx_http_index_module.c b/src/http/modules/ngx_http_index_module.c
index 434ae60c5..936ec8db9 100644
--- a/src/http/modules/ngx_http_index_module.c
+++ b/src/http/modules/ngx_http_index_module.c
@@ -99,7 +99,6 @@ ngx_http_index_handler(ngx_http_request_t *r)
size_t len, nlen, root, allocated;
ngx_int_t rc;
ngx_str_t path, uri;
- ngx_log_t *log;
ngx_uint_t i, dir_tested;
ngx_http_index_t *index;
ngx_open_file_info_t of;
@@ -122,8 +121,6 @@ ngx_http_index_handler(ngx_http_request_t *r)
return NGX_DECLINED;
}
- log = r->connection->log;
-
ilcf = ngx_http_get_module_loc_conf(r, ngx_http_index_module);
clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module);
@@ -206,7 +203,8 @@ ngx_http_index_handler(ngx_http_request_t *r)
*e.pos++ = '\0';
}
- ngx_log_debug1(NGX_LOG_DEBUG_HTTP, log, 0, "open index \"%V\"", &path);
+ ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
+ "open index \"%V\"", &path);
ngx_memzero(&of, sizeof(ngx_open_file_info_t));
@@ -219,7 +217,7 @@ ngx_http_index_handler(ngx_http_request_t *r)
if (ngx_open_cached_file(clcf->open_file_cache, &path, &of, r->pool)
!= NGX_OK)
{
- ngx_log_debug1(NGX_LOG_DEBUG_HTTP, log, of.err,
+ ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, of.err,
ngx_open_file_n " \"%s\" failed", path.data);
if (of.err == 0) {
@@ -244,7 +242,7 @@ ngx_http_index_handler(ngx_http_request_t *r)
continue;
}
- ngx_log_error(NGX_LOG_ERR, log, of.err,
+ ngx_log_error(NGX_LOG_ERR, r->connection->log, of.err,
ngx_open_file_n " \"%s\" failed", path.data);
return NGX_HTTP_INTERNAL_SERVER_ERROR;