Skip to content

Commit

Permalink
Merge pull request #21 from nxxm/feature/qualify-call-getenv
Browse files Browse the repository at this point in the history
Qualify the call of getenv
  • Loading branch information
daminetreg authored Feb 19, 2024
2 parents 1f637a3 + faa17ac commit fd31e78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xxhr/impl/session-curl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ void Session::Impl::prepareCommon() {
#endif

if (std::getenv("SSL_CERT_FILE") != nullptr) {
std::string cacert_path = getenv("SSL_CERT_FILE");
std::string cacert_path = std::getenv("SSL_CERT_FILE");
curl_easy_setopt(curl_->handle, CURLOPT_CAINFO,cacert_path.data());
}

Expand Down

0 comments on commit fd31e78

Please sign in to comment.