diff options
author | Igor Sysoev <igor@sysoev.ru> | 2008-06-23 13:35:34 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2008-06-23 13:35:34 +0000 |
commit | 3e6f74da0556265b7ad3fbdb629f2898b1e1936f (patch) | |
tree | a885bb7c72140fe73c4b15207db61cdee8187493 /src/http/modules/ngx_http_index_module.c | |
parent | ce1e64f404db86230f8c55cac7d9a9b72d9858a0 (diff) | |
download | nginx-3e6f74da0556265b7ad3fbdb629f2898b1e1936f.tar.gz nginx-3e6f74da0556265b7ad3fbdb629f2898b1e1936f.zip |
initialize of.uniq in ngx_open_cached_file()
Diffstat (limited to 'src/http/modules/ngx_http_index_module.c')
-rw-r--r-- | src/http/modules/ngx_http_index_module.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/http/modules/ngx_http_index_module.c b/src/http/modules/ngx_http_index_module.c index bd9c18c9d..096844400 100644 --- 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_t *r) 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_t *r, ngx_http_core_loc_conf_t *clcf, 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; |