From d9e9066e717c36c076730605f94c7d7f0a40e17d Mon Sep 17 00:00:00 2001 From: William Lallemand Date: Mon, 30 Jan 2012 17:27:17 +0100 Subject: [PATCH] BUILD: fix declaration inside a scope block --- src/proto_http.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/proto_http.c b/src/proto_http.c index af53dda70..52efdf806 100644 --- a/src/proto_http.c +++ b/src/proto_http.c @@ -3956,13 +3956,13 @@ int http_send_name_header(struct http_txn *txn, struct http_msg *msg, struct buf struct hdr_ctx ctx; - ctx.idx = 0; - char *hdr_name = be->server_id_hdr_name; int hdr_name_len = be->server_id_hdr_len; char *hdr_val; + ctx.idx = 0; + while (http_find_header2(hdr_name, hdr_name_len, msg->sol, &txn->hdr_idx, &ctx)) { /* remove any existing values from the header */ http_remove_header2(msg, buf, &txn->hdr_idx, &ctx);