Commit 924c8bf8 authored by Tobias Hunger's avatar Tobias Hunger

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's avatarOrgad Shaneh <orgads@gmail.com>
parent 6cb20536
......@@ -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);
......
Markdown is supported
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