From a42de088a28a4661b17693f087397210e30c2ccd Mon Sep 17 00:00:00 2001 From: Gisle Vanem Date: Sat, 6 Apr 2024 18:11:03 -0400 Subject: [PATCH] tests/http: fix compiler warning - Init result code variable to fix clang warning that it may be used uninitialized. Fixes https://github.com/curl/curl/issues/13301 Closes https://github.com/curl/curl/pull/13304 --- tests/http/clients/ws-data.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/http/clients/ws-data.c b/tests/http/clients/ws-data.c index 487d109ef3..e7d52756e8 100644 --- a/tests/http/clients/ws-data.c +++ b/tests/http/clients/ws-data.c @@ -168,7 +168,7 @@ static void websocket_close(CURL *curl) static CURLcode data_echo(CURL *curl, size_t plen_min, size_t plen_max) { - CURLcode res; + CURLcode res = CURLE_OK; size_t len; char *send_buf; size_t i; -- 2.47.3