mirror of
https://github.com/DarkStore-3DS/DarkStore.git
synced 2026-07-03 00:39:02 +00:00
Fix crash.
This commit is contained in:
@@ -282,11 +282,7 @@ Result downloadFromRelease(std::string url, std::string asset, std::string path,
|
||||
|
||||
CURL *hnd = curl_easy_init();
|
||||
|
||||
if (downloadToRAM == true) {
|
||||
ret = setupContext(hnd, apiurl.c_str());
|
||||
} else {
|
||||
ret = setupContextForDirectToFileDownload(hnd, apiurl.c_str());
|
||||
}
|
||||
ret = setupContext(hnd, apiurl.c_str());
|
||||
if (ret != 0) {
|
||||
socExit();
|
||||
free(result_buf);
|
||||
|
||||
Reference in New Issue
Block a user