From: Daniel Stenberg Date: Fri, 17 Oct 2025 07:31:55 +0000 (+0200) Subject: examples/websocket: fix use of uninitialized rlen X-Git-Tag: rc-8_17_0-3~155 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f5f4710a260699b85c3b2d09e5bf886e8884fb29;p=thirdparty%2Fcurl.git examples/websocket: fix use of uninitialized rlen Pointed out by ZeroPath Closes #19088 --- diff --git a/docs/examples/websocket.c b/docs/examples/websocket.c index be6cff64a2..0063f1b59c 100644 --- a/docs/examples/websocket.c +++ b/docs/examples/websocket.c @@ -64,7 +64,7 @@ static CURLcode ping(CURL *curl, const char *send_payload) static CURLcode recv_pong(CURL *curl, const char *expected_payload) { - size_t rlen; + size_t rlen = 0; const struct curl_ws_frame *meta; char buffer[256]; CURLcode res;