From bfce9f86187b0846c3eab359591e64ed4fa4bb0a 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 15e9ef610..16d10729b 100644 --- a/lib/roles/h2/http2.c +++ b/lib/roles/h2/http2.c @@ -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; /*