forked from qt-creator/qt-creator
VCS: Avoid potential crash
Change-Id: Iedae7965eca0c32e0868795ea7541a5064c6c4a6 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
committed by
Tobias Hunger
parent
ae6c5eaa0c
commit
ab36bc6e8b
@@ -993,9 +993,9 @@ bool VcsBasePlugin::runFullySynchronous(const QString &workingDirectory,
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!SynchronousProcess::readDataFromProcess(process, timeoutMS,
|
||||
outputText, errorText, true)) {
|
||||
errorText->append(tr("Error: Executable timed out after %1s.").arg(timeoutMS / 1000).toLocal8Bit());
|
||||
if (!SynchronousProcess::readDataFromProcess(process, timeoutMS, outputText, errorText, true)) {
|
||||
if (errorText)
|
||||
errorText->append(tr("Error: Executable timed out after %1s.").arg(timeoutMS / 1000).toLocal8Bit());
|
||||
SynchronousProcess::stopProcess(process);
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user