diff --git a/Source/CTest/cmCTestCurl.cxx b/Source/CTest/cmCTestCurl.cxx index 8f7d5811bf..e90b494bd9 100644 --- a/Source/CTest/cmCTestCurl.cxx +++ b/Source/CTest/cmCTestCurl.cxx @@ -13,17 +13,11 @@ #include "cmSystemTools.h" cmCTestCurl::cmCTestCurl(cmCTest* ctest) + : CTest(ctest) { - this->CTest = ctest; this->SetProxyType(); - this->UseHttp10 = false; // In windows, this will init the winsock stuff ::curl_global_init(CURL_GLOBAL_ALL); - // default is to verify https - this->VerifyPeerOff = false; - this->VerifyHostOff = false; - this->Quiet = false; - this->TimeOutSeconds = 0; this->Curl = curl_easy_init(); } diff --git a/Source/CTest/cmCTestCurl.h b/Source/CTest/cmCTestCurl.h index d9aa916807..44c1828c50 100644 --- a/Source/CTest/cmCTestCurl.h +++ b/Source/CTest/cmCTestCurl.h @@ -40,14 +40,14 @@ protected: private: cmCTest* CTest; - CURL* Curl; + CURL* Curl = nullptr; std::vector HttpHeaders; std::string HTTPProxyAuth; std::string HTTPProxy; curl_proxytype HTTPProxyType; - bool VerifyHostOff; - bool VerifyPeerOff; - bool UseHttp10; - bool Quiet; - int TimeOutSeconds; + bool VerifyHostOff = false; + bool VerifyPeerOff = false; + bool UseHttp10 = false; + bool Quiet = false; + int TimeOutSeconds = 0; };