]> git.kaiwu.me - nginx.git/commitdiff
fix building --without-http-cache
authorIgor Sysoev <igor@sysoev.ru>
Fri, 8 May 2009 20:14:35 +0000 (20:14 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Fri, 8 May 2009 20:14:35 +0000 (20:14 +0000)
the bug had been appeared in r2806

src/http/ngx_http_upstream.c

index b21d01ab91db5c0c7150be5acff3ada4bf9c114e..0a6fddbdb1feafa0e923ceeb196fb4793baa8014 100644 (file)
@@ -1483,7 +1483,6 @@ ngx_http_upstream_process_header(ngx_http_request_t *r, ngx_http_upstream_t *u)
 static ngx_int_t
 ngx_http_upstream_test_next(ngx_http_request_t *r, ngx_http_upstream_t *u)
 {
-    ngx_int_t                  rc;
     ngx_uint_t                 status;
     ngx_http_upstream_next_t  *un;
 
@@ -1503,6 +1502,7 @@ ngx_http_upstream_test_next(ngx_http_request_t *r, ngx_http_upstream_t *u)
 #if (NGX_HTTP_CACHE)
 
         if (u->stale_cache && (u->conf->cache_use_stale & un->mask)) {
+            ngx_int_t  rc;
 
             rc = u->reinit_request(r);