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
This commit is contained in:
Gisle Vanem 2024-04-06 18:11:03 -04:00 committed by Jay Satiro
parent 9287563e86
commit a42de088a2

View File

@ -168,7 +168,7 @@ static void websocket_close(CURL *curl)
static CURLcode data_echo(CURL *curl, size_t plen_min, size_t plen_max) static CURLcode data_echo(CURL *curl, size_t plen_min, size_t plen_max)
{ {
CURLcode res; CURLcode res = CURLE_OK;
size_t len; size_t len;
char *send_buf; char *send_buf;
size_t i; size_t i;