]> git.kaiwu.me - nginx.git/commitdiff
fix building without PCRE, introduced in r2553
authorIgor Sysoev <igor@sysoev.ru>
Thu, 12 Mar 2009 11:42:34 +0000 (11:42 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Thu, 12 Mar 2009 11:42:34 +0000 (11:42 +0000)
src/http/ngx_http_request.c

index fbe088711cba9e274f25839c2aa2fb60fef9a9a2..0280c63804d24cb44e79b3861a0bb87896258c73 100644 (file)
@@ -1611,7 +1611,6 @@ static ngx_int_t
 ngx_http_find_virtual_server(ngx_http_request_t *r, u_char *host, size_t len)
 {
     u_char                    *server;
-    size_t                     ncaptures;
     ngx_uint_t                 hash;
     ngx_http_virtual_names_t  *vn;
     ngx_http_core_loc_conf_t  *clcf;
@@ -1646,6 +1645,7 @@ ngx_http_find_virtual_server(ngx_http_request_t *r, u_char *host, size_t len)
 #if (NGX_PCRE)
 
     if (vn->nregex) {
+        size_t                   ncaptures;
         ngx_int_t                n;
         ngx_uint_t               i;
         ngx_str_t                name;