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
This commit is contained in:
Willy Tarreau 2019-04-15 21:49:49 +02:00
parent 8de1df92a3
commit 6f7a02a381

View File

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