From 59e6edcfea40ac3daf8a3af91fb65db538c47693 Mon Sep 17 00:00:00 2001 From: Dustin Toff Date: Tue, 27 Feb 2024 17:22:01 -0500 Subject: [PATCH] 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. --- renderdoc/os/posix/posix_process.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renderdoc/os/posix/posix_process.cpp b/renderdoc/os/posix/posix_process.cpp index 44e19d33e..21716d80f 100644 --- a/renderdoc/os/posix/posix_process.cpp +++ b/renderdoc/os/posix/posix_process.cpp @@ -415,7 +415,7 @@ void ApplyEnvironmentModifications(rdcarray &modificati { EnvironmentModification &m = modifications[i]; - rdcstr value = currentEnv[m.name.c_str()]; + rdcstr &value = currentEnv[m.name.c_str()]; ApplySingleEnvMod(m, value);