mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-09 22:01:36 +00:00
posix process: don't crash on malformed environment
This commit is contained in:
1 parent
bda5c71a3e
commit
b335d32424
1 file changed
+6
@@ -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