diff options
| author | Maxim Dounin <mdounin@mdounin.ru> | 2012-01-30 13:19:25 +0000 |
|---|---|---|
| committer | Maxim Dounin <mdounin@mdounin.ru> | 2012-01-30 13:19:25 +0000 |
| commit | 11cc9dac449a88ab0c5b846ae1a1105e50dde354 (patch) | |
| tree | c33884698fa78e4abce24e1f71f4a5a5f5dd76b5 | |
| parent | fbf7a0a48adce49480ebb29bc7a6dc957d240863 (diff) | |
| download | nginx-11cc9dac449a88ab0c5b846ae1a1105e50dde354.tar.gz nginx-11cc9dac449a88ab0c5b846ae1a1105e50dde354.tar.bz2 | |
Limit req: unbreak compilation with MSVC.
| -rw-r--r-- | src/http/modules/ngx_http_limit_req_module.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/http/modules/ngx_http_limit_req_module.c b/src/http/modules/ngx_http_limit_req_module.c index d2293841b..e4d90a98f 100644 --- a/src/http/modules/ngx_http_limit_req_module.c +++ b/src/http/modules/ngx_http_limit_req_module.c @@ -166,6 +166,10 @@ ngx_http_limit_req_handler(ngx_http_request_t *r) rc = NGX_DECLINED; +#if (NGX_SUPPRESS_WARN) + limit = NULL; +#endif + for (n = 0; n < lrcf->limits.nelts; n++) { limit = &limits[n]; |
