BUILD: fix declaration inside a scope block

This commit is contained in:
William Lallemand 2012-01-30 17:27:17 +01:00 committed by Willy Tarreau
parent 8b15ba19c3
commit d9e9066e71

View File

@ -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);