Merge "Address const issue in preparation for libcxx rebase."
This commit is contained in:
commit
a2a13e3267
1 changed files with 1 additions and 1 deletions
|
|
@ -246,7 +246,7 @@ bool Subprocess::ForkAndExec(std::string* error) {
|
|||
char** current = environ;
|
||||
while (char* env_cstr = *current++) {
|
||||
std::string env_string = env_cstr;
|
||||
char* delimiter = strchr(env_string.c_str(), '=');
|
||||
char* delimiter = strchr(&env_string[0], '=');
|
||||
|
||||
// Drop any values that don't contain '='.
|
||||
if (delimiter) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue