Skip to content

Commit

Permalink
🔧 qualify the call of getenv
Browse files Browse the repository at this point in the history
  • Loading branch information
Lambourl committed Jan 18, 2024
1 parent 1f637a3 commit faa17ac
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 faa17ac

Please sign in to comment.