diff options
author | Carsten Schuette <schuettecarsten@github.invalid> | 2023-11-10 11:13:24 +0000 |
---|---|---|
committer | Andy Green <andy@warmcat.com> | 2023-11-10 11:16:53 +0000 |
commit | 08ee6f14de445ed2a10cedbfe71ce0bea02e4e0f (patch) | |
tree | e3b9d6c337e93a915a120d8b4541d8f366f311c8 | |
parent | e7db2efabf6d4bce492a81f797b974ca7a2dd1d3 (diff) | |
download | libwebsockets-08ee6f14de445ed2a10cedbfe71ce0bea02e4e0f.tar.gz |
clean: gcc13 false positive uninitialized
https://github.com/warmcat/libwebsockets/issues/3004
-rw-r--r-- | lib/roles/h2/http2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/roles/h2/http2.c b/lib/roles/h2/http2.c index 58e7c107..9cccdbcd 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; /* |