From 6f7a02a381339d48a6e5f1430ad87c7dccfb0054 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Mon, 15 Apr 2019 21:49:49 +0200 Subject: [PATCH] BUILD: htx: fix a used uninitialized warning on is_cookie2 gcc-3.4 reports this which actually looks like a valid warning when looking at the code, it's unsure why others didn't notice it : src/proto_htx.c: In function `htx_manage_server_side_cookies': src/proto_htx.c:4266: warning: 'is_cookie2' might be used uninitialized in this function --- src/proto_htx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/proto_htx.c b/src/proto_htx.c index 3c6df3079..5643c625a 100644 --- a/src/proto_htx.c +++ b/src/proto_htx.c @@ -4263,7 +4263,7 @@ static void htx_manage_server_side_cookies(struct stream *s, struct channel *res struct server *srv; char *hdr_beg, *hdr_end; char *prev, *att_beg, *att_end, *equal, *val_beg, *val_end, *next; - int is_cookie2; + int is_cookie2 = 0; htx = htxbuf(&res->buf);