Fix posix ApplyEnvironmentModifications for repeated modifications

This behavior is correctly applied on Windows but on posix systems would fail to apply duplicate
entries that should be additive, such as multiple prepends. Previously only the last modification
would win.
This commit is contained in:
Dustin Toff
2024-02-27 17:22:01 -05:00
committed by Jake Turner
parent fa70f8fa87
commit 59e6edcfea
+1 -1
View File
@@ -415,7 +415,7 @@ void ApplyEnvironmentModifications(rdcarray<EnvironmentModification> &modificati
{
EnvironmentModification &m = modifications[i];
rdcstr value = currentEnv[m.name.c_str()];
rdcstr &value = currentEnv[m.name.c_str()];
ApplySingleEnvMod(m, value);