mirror of
https://github.com/curl/curl.git
synced 2026-07-24 12:27:16 +03:00
lib1514: fix return code mixup
Reported-by: Joshua Rogers Closes #19027
This commit is contained in:
parent
1648f23ed3
commit
d03a6b79b4
1 changed files with 2 additions and 3 deletions
|
|
@ -55,7 +55,6 @@ static size_t t1514_read_cb(char *ptr, size_t size, size_t nmemb, void *userp)
|
|||
static CURLcode test_lib1514(const char *URL)
|
||||
{
|
||||
CURL *curl;
|
||||
CURLcode result = CURLE_OK;
|
||||
CURLcode res = CURLE_OK;
|
||||
|
||||
static char testdata[] = "dummy";
|
||||
|
|
@ -77,12 +76,12 @@ static CURLcode test_lib1514(const char *URL)
|
|||
easy_setopt(curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);
|
||||
}
|
||||
|
||||
result = curl_easy_perform(curl);
|
||||
res = curl_easy_perform(curl);
|
||||
|
||||
test_cleanup:
|
||||
|
||||
curl_easy_cleanup(curl);
|
||||
curl_global_cleanup();
|
||||
|
||||
return result;
|
||||
return res;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue