From 9ff04b4df13202e6bb3692f10063d9c3666424c5 Mon Sep 17 00:00:00 2001 From: Dmitry-Me Date: Mon, 11 Sep 2017 23:50:42 +0300 Subject: [PATCH] Resolve CID 1368512 Wrong pointer was being checked --- lib/symboldatabase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/symboldatabase.cpp b/lib/symboldatabase.cpp index 3c6b8af8e..980255121 100644 --- a/lib/symboldatabase.cpp +++ b/lib/symboldatabase.cpp @@ -1465,7 +1465,7 @@ void SymbolDatabase::createSymbolDatabaseUnknownArrayDimensions() } } // check for qualified enumerator - else if (dimension.end) { + else if (dimension.start) { // rhs of [ const Token *rhs = dimension.start->previous()->astOperand2();