]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: fix declaration inside a scope block
authorWilliam Lallemand <wlallemand@exceliance.fr>
Mon, 30 Jan 2012 16:27:17 +0000 (17:27 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 6 Feb 2012 08:46:16 +0000 (09:46 +0100)
src/proto_http.c

index af53dda702c70ab97e4b4de9626881a7beba03b1..52efdf806eabbfc58bfad49339976b65eb83dcd4 100644 (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);