summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-05-08 20:14:35 +0000
committerIgor Sysoev <igor@sysoev.ru>2009-05-08 20:14:35 +0000
commitdbebf0bdbc6ca9c996058b76ad89cf4d4441f7b4 (patch)
treea30bf365b99a483ce94b8f52f403e068bbbcd81e
parentb1897d2395ebe01b060fbc0b4719feb108229071 (diff)
downloadnginx-dbebf0bdbc6ca9c996058b76ad89cf4d4441f7b4.tar.gz
fix building --without-http-cache
the bug had been appeared in r2806
-rw-r--r--src/http/ngx_http_upstream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c
index b21d01ab9..0a6fddbdb 100644
--- a/src/http/ngx_http_upstream.c
+++ b/src/http/ngx_http_upstream.c
@@ -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);