fix not calling curl_global_init in release mode

This commit is contained in:
Lion Kortlepel 2020-12-23 23:57:27 +01:00
parent fb420eac1b
commit 623437e864

View File

@ -34,7 +34,8 @@ int main(int argc, char* argv[]) {
#endif // WIN32
DebugPrintTID();
// curl needs to be initialized to properly deallocate its resources later
Assert(curl_global_init(CURL_GLOBAL_DEFAULT) == CURLE_OK);
auto ret = curl_global_init(CURL_GLOBAL_DEFAULT);
Assert(ret == CURLE_OK);
#ifdef DEBUG
std::thread t1(loop);
t1.detach();