From e7d971d1768a69e4afc64a3d050268e3f86b0ccd Mon Sep 17 00:00:00 2001 From: Jake Petroules Date: Tue, 24 May 2016 10:58:23 -0700 Subject: 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 Reviewed-by: Joerg Bornemann --- src/lib/corelib/language/moduleloader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")); -- cgit v1.2.3