summaryrefslogtreecommitdiffhomepage
path: root/src/http/modules/ngx_http_static_module.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2008-06-26 14:07:59 +0000
committerIgor Sysoev <igor@sysoev.ru>2008-06-26 14:07:59 +0000
commit5a0eac8692b5064ae5017c7d4658dac499ee2b73 (patch)
treeeacbbeabec894d333c3b2d2a4f1a94648db998df /src/http/modules/ngx_http_static_module.c
parent1e1f4c8a04f32907c1b9e263ec45bf20bb6210bb (diff)
downloadnginx-5a0eac8692b5064ae5017c7d4658dac499ee2b73.tar.gz
nginx-5a0eac8692b5064ae5017c7d4658dac499ee2b73.tar.bz2
ngx_memzero() ngx_open_file_info_t
Diffstat (limited to 'src/http/modules/ngx_http_static_module.c')
-rw-r--r--src/http/modules/ngx_http_static_module.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/http/modules/ngx_http_static_module.c b/src/http/modules/ngx_http_static_module.c
index 9d48fb91b..f5d697101 100644
--- a/src/http/modules/ngx_http_static_module.c
+++ b/src/http/modules/ngx_http_static_module.c
@@ -96,8 +96,8 @@ ngx_http_static_handler(ngx_http_request_t *r)
clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module);
- of.uniq = 0;
- of.test_dir = 0;
+ ngx_memzero(&of, sizeof(ngx_open_file_info_t));
+
of.valid = clcf->open_file_cache_valid;
of.min_uses = clcf->open_file_cache_min_uses;
of.errors = clcf->open_file_cache_errors;