Mercurial > hg > nginx
diff src/http/modules/perl/nginx.xs @ 2068:75a8d34459c5
ngx_memzero() ngx_open_file_info_t
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 26 Jun 2008 14:07:59 +0000 |
parents | 67a29af877ed |
children | 25add486e7aa |
line wrap: on
line diff
--- a/src/http/modules/perl/nginx.xs +++ b/src/http/modules/perl/nginx.xs @@ -650,8 +650,8 @@ sendfile(r, filename, offset = -1, bytes 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;