Mercurial > hg > nginx
diff src/core/ngx_file.c @ 1704:e584e946e198
move condition declarations inside blocks where they are used
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 10 Dec 2007 12:09:51 +0000 |
parents | 8c4532a48b0a |
children | 442a791354d8 |
line wrap: on
line diff
--- a/src/core/ngx_file.c Sun Dec 09 20:52:14 2007 +0000 +++ b/src/core/ngx_file.c Mon Dec 10 12:09:51 2007 +0000 @@ -425,9 +425,6 @@ ngx_err_t err; ngx_uint_t i; ngx_path_t **path; -#if !(NGX_WIN32) - ngx_file_info_t fi; -#endif path = cycle->pathes.elts; for (i = 0; i < cycle->pathes.nelts; i++) { @@ -447,6 +444,8 @@ } #if !(NGX_WIN32) + { + ngx_file_info_t fi; if (ngx_file_info((const char *) path[i]->name.data, &fi) == -1) { ngx_log_error(NGX_LOG_EMERG, cycle->log, ngx_errno, @@ -474,7 +473,7 @@ return NGX_ERROR; } } - + } #endif }