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 authored and Jake Turner committed 2024-02-28 07:35:42 +00:00
1 parent fa70f8fa87
commit 59e6edcfea
1 file changed
+1 -1
+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);