posix process: don't crash on malformed environment

This commit is contained in:
Pierre-Loup A. Griffais
2017-01-21 12:00:13 -08:00
committed by baldurk
parent bda5c71a3e
commit b335d32424
+6
View File
@@ -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;