diff options
-rw-r--r-- | plugins/clangstaticanalyzer/clangstaticanalyzerlogfilereader.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/clangstaticanalyzer/clangstaticanalyzerlogfilereader.cpp b/plugins/clangstaticanalyzer/clangstaticanalyzerlogfilereader.cpp index 22bbb4cb73..f5c4b438d3 100644 --- a/plugins/clangstaticanalyzer/clangstaticanalyzerlogfilereader.cpp +++ b/plugins/clangstaticanalyzer/clangstaticanalyzerlogfilereader.cpp @@ -253,7 +253,7 @@ ExplainingStep ClangStaticAnalyzerLogFileReader::readPathDict() } } - bool depthOk; + bool depthOk = false; while (m_xml.readNextStartElement()) { if (m_xml.name() == QLatin1String("key")) { @@ -291,7 +291,7 @@ Location ClangStaticAnalyzerLogFileReader::readLocationDict(bool elementIsRead) int line = 0; int column = 0; int fileIndex = 0; - bool lineOk, columnOk, fileIndexOk; + bool lineOk = false, columnOk = false, fileIndexOk = false; // Collect values while (m_xml.readNextStartElement()) { |