reapack

Package manager for REAPER
Log | Files | Refs | Submodules | README | LICENSE

commit c57024b273b1a56ce4cc5b7fb3c0acdf1d857108
parent 1b9f64a23de3dc09ab1298470c43fbf8850ba912
Author: cfillion <cfillion@users.noreply.github.com>
Date:   Sun, 12 Feb 2017 17:49:34 -0500

download: don't report garbage as error in some edge cases

(eg. proxy is configured but computer is currently offline)

Diffstat:
Msrc/download.cpp | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/download.cpp b/src/download.cpp @@ -151,7 +151,7 @@ void Download::exec(CURL *curl) headers = curl_slist_append(headers, "Cache-Control: no-cache"); curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers); - char errbuf[CURL_ERROR_SIZE]; + char errbuf[CURL_ERROR_SIZE] = "No details"; curl_easy_setopt(curl, CURLOPT_ERRORBUFFER, errbuf); const CURLcode res = curl_easy_perform(curl);