diff src/http/modules/ngx_http_index_module.c @ 2063:67a29af877ed

initialize of.uniq in ngx_open_cached_file()
author Igor Sysoev <igor@sysoev.ru>
date Mon, 23 Jun 2008 13:35:34 +0000
parents 2a92804f4109
children 75a8d34459c5
line wrap: on
line diff
--- a/src/http/modules/ngx_http_index_module.c
+++ b/src/http/modules/ngx_http_index_module.c
@@ -208,6 +208,7 @@ ngx_http_index_handler(ngx_http_request_
 
         ngx_log_debug1(NGX_LOG_DEBUG_HTTP, log, 0, "open index \"%V\"", &path);
 
+        of.uniq = 0;
         of.test_dir = 0;
         of.valid = clcf->open_file_cache_valid;
         of.min_uses = clcf->open_file_cache_min_uses;
@@ -291,6 +292,7 @@ ngx_http_index_test_dir(ngx_http_request
     ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
                    "http index check dir: \"%V\"", &dir);
 
+    of.uniq = 0;
     of.test_dir = 1;
     of.valid = clcf->open_file_cache_valid;
     of.min_uses = 0;