Fix invalid conversion from "const char *" to "char *" for linux systems. strchr() on darwin returns "char *" so we weren't seeing this issue on MacOSX.

llvm-svn: 121897
This commit is contained in:
Greg Clayton 2010-12-15 20:52:40 +00:00
parent bdf4c6ac4f
commit e2956eeb87
1 changed files with 1 additions and 1 deletions

View File

@ -371,7 +371,7 @@ Process::ProcessInstanceSettings::GetHostEnvironmentIfNeeded ()
const char *env_entry = host_env.GetStringAtIndex (idx);
if (env_entry)
{
char *equal_pos = ::strchr(env_entry, '=');
const char *equal_pos = ::strchr(env_entry, '=');
if (equal_pos)
{
std::string key (env_entry, equal_pos - env_entry);