Skip to content

Commit f5f4710

Browse files
committed
examples/websocket: fix use of uninitialized rlen
Pointed out by ZeroPath Closes curl#19088
1 parent f91be14 commit f5f4710

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/examples/websocket.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ static CURLcode ping(CURL *curl, const char *send_payload)
6464

6565
static CURLcode recv_pong(CURL *curl, const char *expected_payload)
6666
{
67-
size_t rlen;
67+
size_t rlen = 0;
6868
const struct curl_ws_frame *meta;
6969
char buffer[256];
7070
CURLcode res;

0 commit comments

Comments
 (0)