mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-20 13:33:02 +01:00
Fix #8434: Crash if curl_easy_init fails
This commit is contained in:
@@ -98,7 +98,7 @@ namespace OpenRCT2::Network::Http
|
||||
std::shared_ptr<void> _(nullptr, [curl](...) { curl_easy_cleanup(curl); });
|
||||
|
||||
if (!curl)
|
||||
std::runtime_error("Failed to initialize curl");
|
||||
throw std::runtime_error("Failed to initialize curl");
|
||||
|
||||
Response res;
|
||||
WriteThis wt;
|
||||
|
||||
Reference in New Issue
Block a user