diff options
author | B Stack <bgstack15@gmail.com> | 2020-10-02 14:42:30 -0400 |
---|---|---|
committer | B Stack <bgstack15@gmail.com> | 2020-10-02 14:42:30 -0400 |
commit | 8aaf029ab6046eb8cbe600a548d176c1418bd99a (patch) | |
tree | d8a89392817379e3036c42eedebf33d4fb372dfd /libcurl | |
parent | Merge branch '11.1' into 'master' (diff) | |
download | FreeFileSync-8aaf029ab6046eb8cbe600a548d176c1418bd99a.tar.gz FreeFileSync-8aaf029ab6046eb8cbe600a548d176c1418bd99a.tar.bz2 FreeFileSync-8aaf029ab6046eb8cbe600a548d176c1418bd99a.zip |
add upstream 11.2
Diffstat (limited to 'libcurl')
-rw-r--r-- | libcurl/curl_wrap.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libcurl/curl_wrap.h b/libcurl/curl_wrap.h index 40a330ef..bc924713 100644 --- a/libcurl/curl_wrap.h +++ b/libcurl/curl_wrap.h @@ -148,12 +148,10 @@ std::wstring formatCurlStatusCode(CURLcode sc) void applyCurlOptions(CURL* easyHandle, const std::vector<CurlOption>& options) //throw SysError { for (const CurlOption& opt : options) - { - const CURLcode rc = ::curl_easy_setopt(easyHandle, opt.option, opt.value); - if (rc != CURLE_OK) + if (const CURLcode rc = ::curl_easy_setopt(easyHandle, opt.option, opt.value); + rc != CURLE_OK) throw SysError(formatSystemError("curl_easy_setopt(" + numberTo<std::string>(static_cast<int>(opt.option)) + ")", formatCurlStatusCode(rc), utfTo<std::wstring>(::curl_easy_strerror(rc)))); - } } } } |