forked from qt-creator/qt-creator
ToolChains: Fix theoretically possible null pointer access
This can not be triggered right now, but somebody might run into this later. Change-Id: Ibc635e7dca1db7ab77376b5373db67dcdd2bb46e Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -831,10 +831,10 @@ QList<ToolChain *> GccToolChainFactory::autoDetectToolchains(const QString &comp
|
||||
|
||||
foreach (const Abi &abi, abiList) {
|
||||
QScopedPointer<GccToolChain> tc(createToolChain(true));
|
||||
tc->setMacroCache(QStringList(), macros);
|
||||
if (tc.isNull())
|
||||
return result;
|
||||
|
||||
tc->setMacroCache(QStringList(), macros);
|
||||
tc->setCompilerCommand(compilerPath);
|
||||
tc->setSupportedAbis(abiList);
|
||||
tc->setTargetAbi(abi);
|
||||
|
Reference in New Issue
Block a user