forked from OSchip/llvm-project
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:
parent
bdf4c6ac4f
commit
e2956eeb87
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue