Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-01-27 19:22:02 +0300
committerIgor Sysoev <igor@sysoev.ru>2009-01-27 19:22:02 +0300
commit67392e805461ae4d599eea5e1b686147792d4e88 (patch)
treea3102d9d336439cc5a8e0c56387313ab48b99fe9
parente46f19f7c497f3b378d4397f5280d4ef914d21c6 (diff)
fix types and add comment
-rw-r--r--src/http/ngx_http_core_module.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c
index c22e71776..9890fbb92 100644
--- a/src/http/ngx_http_core_module.c
+++ b/src/http/ngx_http_core_module.c
@@ -1034,8 +1034,7 @@ ngx_int_t
ngx_http_core_try_files_phase(ngx_http_request_t *r,
ngx_http_phase_handler_t *ph)
{
- size_t len, root, alias;
- ssize_t reserve, allocated;
+ size_t len, root, alias, reserve, allocated;
u_char *p, *name;
ngx_str_t path;
ngx_uint_t test_dir;
@@ -1059,7 +1058,7 @@ ngx_http_core_try_files_phase(ngx_http_request_t *r,
allocated = 0;
root = 0;
name = NULL;
- path.len = 0;
+ /* suppress MSVC warning */
path.data = NULL;
tf = clcf->try_files;