Commit 2259aa12 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by hjk
Browse files

Valgrind: Avoid passing empty argument



Change-Id: Id0915718cb6b76c227ded0f418bf3c5aadcb9f35
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent 2bfa7612
...@@ -310,7 +310,8 @@ void ValgrindProcess::findPIDOutputReceived() ...@@ -310,7 +310,8 @@ void ValgrindProcess::findPIDOutputReceived()
QString ValgrindProcess::argumentString(Utils::OsType osType) const QString ValgrindProcess::argumentString(Utils::OsType osType) const
{ {
QString arguments = Utils::QtcProcess::joinArgs(m_valgrindArguments, osType); QString arguments = Utils::QtcProcess::joinArgs(m_valgrindArguments, osType);
Utils::QtcProcess::addArg(&arguments, m_debuggeeExecutable, osType); if (!m_debuggeeExecutable.isEmpty())
Utils::QtcProcess::addArg(&arguments, m_debuggeeExecutable, osType);
Utils::QtcProcess::addArgs(&arguments, m_debuggeeArguments); Utils::QtcProcess::addArgs(&arguments, m_debuggeeArguments);
return arguments; return arguments;
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment