forked from OSchip/llvm-project
Fixed an issue that was always causing an extra empty argument to be sent
to any inferior process because the code was checking if no run args were set and then adding and empty string. This was happening for environment vars as well. llvm-svn: 113831
This commit is contained in:
parent
6f00abd546
commit
a52c155e01
|
@ -2099,10 +2099,10 @@ ProcessInstanceSettings::GetInstanceSettingsValue (const SettingEntry &entry,
|
|||
if (var_name == RunArgsVarName())
|
||||
{
|
||||
if (m_run_args.GetArgumentCount() > 0)
|
||||
{
|
||||
for (int i = 0; i < m_run_args.GetArgumentCount(); ++i)
|
||||
value.AppendString (m_run_args.GetArgumentAtIndex (i));
|
||||
else
|
||||
value.AppendString ("");
|
||||
}
|
||||
}
|
||||
else if (var_name == EnvVarsVarName())
|
||||
{
|
||||
|
@ -2116,8 +2116,6 @@ ProcessInstanceSettings::GetInstanceSettingsValue (const SettingEntry &entry,
|
|||
value.AppendString (value_str.GetData());
|
||||
}
|
||||
}
|
||||
else
|
||||
value.AppendString ("");
|
||||
}
|
||||
else if (var_name == InputPathVarName())
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue