mirror of
https://github.com/curl/curl.git
synced 2024-12-21 06:50:10 +08:00
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:
parent
9287563e86
commit
a42de088a2
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user