This commit is contained in:
Hiroshi Yamauchi
2025-09-16 15:34:11 -07:00
committed by GitHub
parent 0e5c32bd6d
commit 7c861bcedf

View File

@@ -220,8 +220,7 @@ static bool Execute(ProcessInfo &PI, StringRef Program,
llvm::append_range(EnvBlock, EnvString);
EnvBlock.push_back(0);
}
// If an empty environment (*Env is size zero), we need to
// terminate with two nulls.
// Empty environments need to be terminated with two nulls.
if (Env->size() == 0)
EnvBlock.push_back(0);
EnvBlock.push_back(0);