mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 09:30:44 +00:00
posix process: don't crash on malformed environment
This commit is contained in:
committed by
baldurk
parent
bda5c71a3e
commit
b335d32424
@@ -89,6 +89,12 @@ static map<string, string> EnvStringToEnvMap(const char **envstring)
|
||||
{
|
||||
const char *equals = strchr(*e, '=');
|
||||
|
||||
if(equals == NULL)
|
||||
{
|
||||
e++;
|
||||
continue;
|
||||
}
|
||||
|
||||
string name;
|
||||
string value;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user