diff options
author | Jake Petroules <jake.petroules@qt.io> | 2016-05-24 10:58:23 -0700 |
---|---|---|
committer | Jake Petroules <jake.petroules@qt.io> | 2016-05-25 08:37:10 +0000 |
commit | e7d971d1768a69e4afc64a3d050268e3f86b0ccd (patch) | |
tree | 1d1e9b9eae7a9e6da36ed3391651905e49563ea6 | |
parent | 0a8e2013d57134639c1bc72a400dddf2232e32f0 (diff) |
Fix use of potentially uninitialized value.
This does not seem to be reproducible currently (found through static
analysis), but it's fragile if the code structure of the callee changes.
Change-Id: I3500a631306f00392e83dbc83103b41e0bf2dc9c
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
-rw-r--r-- | src/lib/corelib/language/moduleloader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/corelib/language/moduleloader.cpp b/src/lib/corelib/language/moduleloader.cpp index 3bfa38211..95c1092d4 100644 --- a/src/lib/corelib/language/moduleloader.cpp +++ b/src/lib/corelib/language/moduleloader.cpp @@ -1103,7 +1103,7 @@ Item *ModuleLoader::loadModule(ProductContext *productContext, Item *item, QStringList moduleSearchPaths; foreach (const QString &searchPath, m_reader->searchPaths()) addExtraModuleSearchPath(moduleSearchPaths, searchPath); - bool cacheHit; + bool cacheHit = false; modulePrototype = searchAndLoadModuleFile(productContext, dependsItemLocation, moduleName, moduleSearchPaths, isRequired, &cacheHit); static const QualifiedId baseModuleId = QualifiedId(QLatin1String("qbs")); |