aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_file.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2007-12-10 12:09:51 +0000
committerIgor Sysoev <igor@sysoev.ru>2007-12-10 12:09:51 +0000
commit86ef6aaa6b574f2015a5094670b7123c425a63af (patch)
treee0b78dcc48085162b29fbff2c0aeb7e5bd75c654 /src/core/ngx_file.c
parente60049418525a5e605765aa2b8f9c6796eb390a6 (diff)
downloadnginx-86ef6aaa6b574f2015a5094670b7123c425a63af.tar.gz
nginx-86ef6aaa6b574f2015a5094670b7123c425a63af.zip
move condition declarations inside blocks where they are used
Diffstat (limited to 'src/core/ngx_file.c')
-rw-r--r--src/core/ngx_file.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/core/ngx_file.c b/src/core/ngx_file.c
index c945b558d..8edd3e14e 100644
--- a/src/core/ngx_file.c
+++ b/src/core/ngx_file.c
@@ -425,9 +425,6 @@ ngx_create_pathes(ngx_cycle_t *cycle, ngx_uid_t user)
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 @@ ngx_create_pathes(ngx_cycle_t *cycle, ngx_uid_t user)
}
#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 @@ ngx_create_pathes(ngx_cycle_t *cycle, ngx_uid_t user)
return NGX_ERROR;
}
}
-
+ }
#endif
}