examples/websocket: fix use of uninitialized rlen

Pointed out by ZeroPath

Closes #19088
This commit is contained in:
Daniel Stenberg 2025-10-17 09:31:55 +02:00
parent f91be14bfb
commit f5f4710a26
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -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;