1
0
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:
Ted John
2018-12-14 17:10:34 +00:00
parent e2e2d4b7bf
commit fecf4ac3e8
2 changed files with 2 additions and 1 deletions

View File

@@ -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;