Skip to content

Commit

Permalink
Don't modify list of environment modifications when launching process
Browse files Browse the repository at this point in the history
  • Loading branch information
baldurk committed Jul 25, 2018
1 parent 94694e0 commit c7d5aa8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion renderdoc/os/posix/posix_process.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ ExecuteResult Process::LaunchAndInjectIntoProcess(const char *app, const char *w
// turn environment string to a UTF-8 map
char **currentEnvironment = GetCurrentEnvironment();
map<string, string> env = EnvStringToEnvMap((const char **)currentEnvironment);
vector<EnvironmentModification> &modifications = GetEnvModifications();
vector<EnvironmentModification> modifications = GetEnvModifications();

for(const EnvironmentModification &e : envList)
modifications.push_back(e);
Expand Down

0 comments on commit c7d5aa8

Please sign in to comment.