memset error in DownloadUtils

This commit is contained in:
Maschell 2023-01-20 19:09:11 +01:00
parent 3cb99bcf0f
commit 1ae67f737d
1 changed files with 1 additions and 0 deletions

View File

@ -137,6 +137,7 @@ int DownloadUtils::DownloadFileToBuffer(const std::string &url, std::string &out
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, &writeCallback);
char error[CURL_ERROR_SIZE]; /* needs to be at least this big */
memset(error, 0, sizeof(error));
curl_easy_setopt(curl, CURLOPT_ERRORBUFFER, error);
errorTextOut = {};