Skip to content

Commit

Permalink
Update DynamicLibraryManager.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
mcbarton authored Aug 21, 2024
1 parent a41bc63 commit 0405ac1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Interpreter/DynamicLibraryManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ namespace Cpp {
// Behaviour is to not add paths that don't exist...In an interpreted env
// does this make sense? Path could pop into existance at any time.
for (const char* Var : kSysLibraryEnv) {
#if defined(_WIN32)
char* Env = nullptr;
size_t sz = 0;
#if defined(_WIN32)
if (_dupenv_s(&Env, &sz, Var)) {
#else
if (const char* Env = ::getenv(Var)) {
Expand Down

0 comments on commit 0405ac1

Please sign in to comment.