forked from qt-creator/qt-creator
Fix warning about use on unitialized variable, potential crash.
Change-Id: I69bce05bb758b78f5cc7776a698ebcac509844dd Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
This commit is contained in:
committed by
Daniel Teske
parent
d88faf03a9
commit
b03dbee784
@@ -201,7 +201,7 @@ void Qt4Manager::updateVariable(const QByteArray &variable)
|
||||
return;
|
||||
}
|
||||
QString value;
|
||||
QtSupport::BaseQtVersion *qtv;
|
||||
const QtSupport::BaseQtVersion *qtv = 0;
|
||||
if (Qt4BaseTarget *t = qt4pro->activeTarget()) {
|
||||
if (Qt4BuildConfiguration *bc = t->activeQt4BuildConfiguration())
|
||||
qtv = bc->qtVersion();
|
||||
|
||||
Reference in New Issue
Block a user