From: Gisle Vanem Date: Sat, 6 Apr 2024 22:11:03 +0000 (-0400) Subject: tests/http: fix compiler warning X-Git-Tag: curl-8_8_0~286 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a42de088a28a4661b17693f087397210e30c2ccd;p=thirdparty%2Fcurl.git 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 --- 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;