From 5a0eac8692b5064ae5017c7d4658dac499ee2b73 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Thu, 26 Jun 2008 14:07:59 +0000 Subject: ngx_memzero() ngx_open_file_info_t --- src/http/modules/perl/nginx.xs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/http/modules/perl') 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; -- cgit