# HG changeset patch # User Igor Sysoev # Date 1212840518 0 # Node ID 6389d4accacf8b96279765b7d9022153065a4da3 # Parent 3f75a582a11e26761912b0f0004c9ba952b0ec7f fix building without PCRE introduced in r2023 diff --git a/src/http/ngx_http.c b/src/http/ngx_http.c --- a/src/http/ngx_http.c +++ b/src/http/ngx_http.c @@ -1300,14 +1300,14 @@ ngx_http_optimize_servers(ngx_conf_t *cf ngx_array_t *in_ports) { ngx_int_t rc; - ngx_uint_t s, p, a, i; + ngx_uint_t s, p, a; ngx_hash_init_t hash; ngx_http_server_name_t *name; ngx_hash_keys_arrays_t ha; ngx_http_conf_in_port_t *in_port; ngx_http_conf_in_addr_t *in_addr; #if (NGX_PCRE) - ngx_uint_t regex; + ngx_uint_t regex, i; #endif in_port = in_ports->elts;