diff options
author | Igor Sysoev <igor@sysoev.ru> | 2008-06-26 14:07:59 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2008-06-26 14:07:59 +0000 |
commit | 5a0eac8692b5064ae5017c7d4658dac499ee2b73 (patch) | |
tree | eacbbeabec894d333c3b2d2a4f1a94648db998df | |
parent | 1e1f4c8a04f32907c1b9e263ec45bf20bb6210bb (diff) | |
download | nginx-5a0eac8692b5064ae5017c7d4658dac499ee2b73.tar.gz nginx-5a0eac8692b5064ae5017c7d4658dac499ee2b73.zip |
ngx_memzero() ngx_open_file_info_t
-rw-r--r-- | src/http/modules/ngx_http_flv_module.c | 4 | ||||
-rw-r--r-- | src/http/modules/ngx_http_gzip_static_module.c | 4 | ||||
-rw-r--r-- | src/http/modules/ngx_http_index_module.c | 8 | ||||
-rw-r--r-- | src/http/modules/ngx_http_static_module.c | 4 | ||||
-rw-r--r-- | src/http/modules/perl/nginx.xs | 4 | ||||
-rw-r--r-- | src/http/ngx_http_script.c | 4 |
6 files changed, 14 insertions, 14 deletions
diff --git a/src/http/modules/ngx_http_flv_module.c b/src/http/modules/ngx_http_flv_module.c index 5dedb9e82..cc2ec4da1 100644 --- a/src/http/modules/ngx_http_flv_module.c +++ b/src/http/modules/ngx_http_flv_module.c @@ -105,8 +105,8 @@ ngx_http_flv_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; diff --git a/src/http/modules/ngx_http_gzip_static_module.c b/src/http/modules/ngx_http_gzip_static_module.c index a63281a8b..41ac0d3ee 100644 --- a/src/http/modules/ngx_http_gzip_static_module.c +++ b/src/http/modules/ngx_http_gzip_static_module.c @@ -119,8 +119,8 @@ ngx_http_gzip_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; diff --git a/src/http/modules/ngx_http_index_module.c b/src/http/modules/ngx_http_index_module.c index 096844400..bc4cd5009 100644 --- a/src/http/modules/ngx_http_index_module.c +++ b/src/http/modules/ngx_http_index_module.c @@ -208,8 +208,8 @@ 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; + 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; @@ -292,10 +292,10 @@ 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; + ngx_memzero(&of, sizeof(ngx_open_file_info_t)); + of.test_dir = 1; of.valid = clcf->open_file_cache_valid; - of.min_uses = 0; of.errors = clcf->open_file_cache_errors; if (ngx_open_cached_file(clcf->open_file_cache, &dir, &of, r->pool) 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; diff --git a/src/http/modules/perl/nginx.xs b/src/http/modules/perl/nginx.xs index cc0fc4ba6..f86b76f3e 100644 --- a/src/http/modules/perl/nginx.xs +++ b/src/http/modules/perl/nginx.xs @@ -650,8 +650,8 @@ sendfile(r, filename, offset = -1, bytes = 0) 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; diff --git a/src/http/ngx_http_script.c b/src/http/ngx_http_script.c index af6e3098f..7a47417e4 100644 --- a/src/http/ngx_http_script.c +++ b/src/http/ngx_http_script.c @@ -994,8 +994,8 @@ ngx_http_script_file_code(ngx_http_script_engine_t *e) 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; |