Address const issue in preparation for libcxx rebase.
Change-Id: I80c3349ee93d2b3f16c6fadc7f34b2bf4f2cc0d3
This commit is contained in:
parent
8aeabe15dd
commit
80fd4549e3
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…
Reference in a new issue