changeset 4424:aacd7356c197

Limit req: unbreak compilation with MSVC.
author Maxim Dounin <mdounin@mdounin.ru>
date Mon, 30 Jan 2012 13:19:25 +0000
parents 196c3dacff0d
children da3e1be1915a
files src/http/modules/ngx_http_limit_req_module.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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_requ
 
     rc = NGX_DECLINED;
 
+#if (NGX_SUPPRESS_WARN)
+    limit = NULL;
+#endif
+
     for (n = 0; n < lrcf->limits.nelts; n++) {
 
         limit = &limits[n];