From 08ee6f14de445ed2a10cedbfe71ce0bea02e4e0f Mon Sep 17 00:00:00 2001 From: Carsten Schuette Date: Fri, 10 Nov 2023 11:13:24 +0000 Subject: [PATCH] clean: gcc13 false positive uninitialized https://github.com/warmcat/libwebsockets/issues/3004 --- lib/roles/h2/http2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/roles/h2/http2.c b/lib/roles/h2/http2.c index 58e7c107d..9cccdbcdc 100644 --- a/lib/roles/h2/http2.c +++ b/lib/roles/h2/http2.c @@ -2811,7 +2811,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); @@ -2827,6 +2826,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; /*