self check; Fix shadow variable

This commit is contained in:
Daniel Marjamäki 2021-05-14 23:05:27 +02:00
parent 2fcc0c3959
commit c67e618627
1 changed files with 3 additions and 3 deletions

View File

@ -842,9 +842,9 @@ const Token* CheckUninitVar::checkLoopBodyRecursive(const Token *start, const Va
if (!Token::simpleMatch(top->previous(), "for (") || !Token::simpleMatch(top->link(), ") {"))
continue;
const Token *bodyStart = top->link()->next();
const Token *errorToken = checkLoopBodyRecursive(bodyStart, var, alloc, membervar, bailout);
if (errorToken)
return errorToken;
const Token *errorToken1 = checkLoopBodyRecursive(bodyStart, var, alloc, membervar, bailout);
if (errorToken1)
return errorToken1;
if (bailout)
return nullptr;
}