We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b77c773 commit 4011ba1Copy full SHA for 4011ba1
Release/samples/BingRequest/bingrequest.cpp
@@ -29,7 +29,7 @@ web::http::client::http_client_config client_config_for_proxy()
29
wchar_t* pValue;
30
size_t len;
31
auto err = _wdupenv_s(&pValue, &len, L"http_proxy");
32
- if (!err) {
+ if (!err && pValue) {
33
std::unique_ptr<wchar_t, void(*)(wchar_t*)> holder(pValue, [](wchar_t* p) { free(p); });
34
uri proxy_uri(std::wstring(pValue, len));
35
#else
0 commit comments