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:
Greg Clayton 2010-09-14 03:47:41 +00:00
parent 6f00abd546
commit a52c155e01
1 changed files with 2 additions and 4 deletions

View File

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