1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-14 02:08:27 +08:00

CTest: Fix our internal CURL_DEBUGFUNCTION to conform to CURL docs

The curl debug callback function must return ``0``.

Fixes: #20449
This commit is contained in:
Betsy McPhail
2020-03-11 11:41:26 -04:00
committed by Brad King
parent dd45b7b429
commit 7a1cce210b
2 changed files with 2 additions and 2 deletions

View File

@@ -55,7 +55,7 @@ size_t curlDebugCallback(CURL* /*unused*/, curl_infotype /*unused*/,
char* chPtr, size_t size, void* data)
{
cm::append(*static_cast<std::vector<char>*>(data), chPtr, chPtr + size);
return size;
return 0;
}
}

View File

@@ -110,7 +110,7 @@ static size_t cmCTestSubmitHandlerCurlDebugCallback(CURL* /*unused*/,
{
cm::append(*static_cast<cmCTestSubmitHandlerVectorOfChar*>(data), chPtr,
chPtr + size);
return size;
return 0;
}
cmCTestSubmitHandler::cmCTestSubmitHandler()