summaryrefslogtreecommitdiffhomepage
path: root/src/http/modules/ngx_http_index_module.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2007-12-27 20:32:43 +0000
committerIgor Sysoev <igor@sysoev.ru>2007-12-27 20:32:43 +0000
commit86b915901a7174298c4997004b562a75726a1068 (patch)
tree60063af33b3d1bbdd77706933c1946c70e951732 /src/http/modules/ngx_http_index_module.c
parentce5d6e3237bf57f8773c00178e166c8e7cfe986c (diff)
downloadnginx-86b915901a7174298c4997004b562a75726a1068.tar.gz
nginx-86b915901a7174298c4997004b562a75726a1068.tar.bz2
optimization
Diffstat (limited to 'src/http/modules/ngx_http_index_module.c')
-rw-r--r--src/http/modules/ngx_http_index_module.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/http/modules/ngx_http_index_module.c b/src/http/modules/ngx_http_index_module.c
index c9622835d..6bfb04565 100644
--- a/src/http/modules/ngx_http_index_module.c
+++ b/src/http/modules/ngx_http_index_module.c
@@ -214,10 +214,9 @@ ngx_http_index_handler(ngx_http_request_t *r)
of.errors = clcf->open_file_cache_errors;
of.events = clcf->open_file_cache_events;
- rc = ngx_open_cached_file(clcf->open_file_cache, &path, &of, r->pool);
-
- if (rc == NGX_ERROR) {
-
+ 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_open_file_n " \"%s\" failed", path.data);