Skip to content

Commit 24ab8b9

Browse files
authored
Update DynamicLibraryManager.cpp
1 parent e6cb4cc commit 24ab8b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Interpreter/DynamicLibraryManager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ namespace Cpp {
5454
for (const char* Var : kSysLibraryEnv) {
5555
char* Env = nullptr;
5656
size_t sz = 0;
57-
if (_dupenv_s(&Env, &sz, Var) == 0 && buf != nullptr) {
57+
if (_dupenv_s(&Env, &sz, Var) == 0 && Env != nullptr) {
5858
SmallVector<StringRef, 10> CurPaths;
5959
SplitPaths(Env, CurPaths, utils::kPruneNonExistant, Cpp::utils::platform::kEnvDelim);
6060
for (const auto& Path : CurPaths)

0 commit comments

Comments
 (0)