Fix MSVC compiler errors (#3742) (#3746)

This commit is contained in:
Kritik Bhimani
2022-11-13 08:35:06 -05:00
committed by GitHub
parent d25834e57b
commit 201419c646
3 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -78,7 +78,7 @@ VL_DEFINE_DEBUG_FUNCTIONS;
string V3Os::getenvStr(const string& envvar, const string& defaultValue) {
#if defined(_MSC_VER)
// Note: MinGW does not offer _dupenv_s
const char* const envvalue = nullptr;
const char* envvalue = nullptr;
_dupenv_s(&envvalue, nullptr, envvar.c_str());
if (envvalue != nullptr) {
const std::string result{envvalue};