Merge "Address const issue in preparation for libcxx rebase."

This commit is contained in:
Dan Austin 2016-03-30 17:40:01 +00:00 committed by Gerrit Code Review
commit a2a13e3267

View file

@ -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) {