From 1ae67f737d4306cdc9345263ca92505356f00afe Mon Sep 17 00:00:00 2001 From: Maschell Date: Fri, 20 Jan 2023 19:09:11 +0100 Subject: [PATCH] memset error in DownloadUtils --- source/utils/DownloadUtils.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/utils/DownloadUtils.cpp b/source/utils/DownloadUtils.cpp index f5da18b..8d235cd 100644 --- a/source/utils/DownloadUtils.cpp +++ b/source/utils/DownloadUtils.cpp @@ -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 = {};