diff --git a/lib/checkleakautovar.cpp b/lib/checkleakautovar.cpp index 5286666e9..7713ea0b2 100644 --- a/lib/checkleakautovar.cpp +++ b/lib/checkleakautovar.cpp @@ -237,7 +237,7 @@ void CheckLeakAutoVar::checkScope(const Token * const startToken, std::set notzero, unsigned int recursiveCount) { - if (++recursiveCount > 1000) // maximum number of "else if ()" + if (++recursiveCount > 1000) // maximum number of "else if ()" throw InternalError(startToken, "Internal limit: CheckLeakAutoVar::checkScope() Maximum recursive count of 1000 reached.", InternalError::LIMIT); std::map &alloctype = varInfo->alloctype;