mirror of
https://github.com/wiiu-env/AromaUpdater.git
synced 2025-01-28 20:45:29 +01:00
memset error in DownloadUtils
This commit is contained in:
parent
3cb99bcf0f
commit
1ae67f737d
@ -137,6 +137,7 @@ int DownloadUtils::DownloadFileToBuffer(const std::string &url, std::string &out
|
|||||||
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, &writeCallback);
|
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, &writeCallback);
|
||||||
|
|
||||||
char error[CURL_ERROR_SIZE]; /* needs to be at least this big */
|
char error[CURL_ERROR_SIZE]; /* needs to be at least this big */
|
||||||
|
memset(error, 0, sizeof(error));
|
||||||
curl_easy_setopt(curl, CURLOPT_ERRORBUFFER, error);
|
curl_easy_setopt(curl, CURLOPT_ERRORBUFFER, error);
|
||||||
|
|
||||||
errorTextOut = {};
|
errorTextOut = {};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user