1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

clean: gcc13 false positive uninitialized

https://github.com/warmcat/libwebsockets/issues/3004
This commit is contained in:
Carsten Schuette 2023-11-10 11:13:24 +00:00 committed by Andy Green
parent 5bcc5ac655
commit bfce9f8618

View file

@ -2816,7 +2816,6 @@ int
lws_read_h2(struct lws *wsi, unsigned char *buf, lws_filepos_t len)
{
unsigned char *oldbuf = buf;
lws_filepos_t body_chunk_len;
// lwsl_notice("%s: h2 path: wsistate 0x%x len %d\n", __func__,
// wsi->wsistate, (int)len);
@ -2832,6 +2831,7 @@ lws_read_h2(struct lws *wsi, unsigned char *buf, lws_filepos_t len)
* case.
*/
while (len) {
lws_filepos_t body_chunk_len = 0;
int m;
/*