From: Willy Tarreau Date: Mon, 15 Apr 2019 19:49:49 +0000 (+0200) Subject: BUILD: htx: fix a used uninitialized warning on is_cookie2 X-Git-Tag: v2.0-dev3~267 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6f7a02a381339d48a6e5f1430ad87c7dccfb0054;p=thirdparty%2Fhaproxy.git 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 --- diff --git a/src/proto_htx.c b/src/proto_htx.c index 3c6df30798..5643c625a4 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);