self check; Fix shadow variable
This commit is contained in:
parent
2fcc0c3959
commit
c67e618627
|
@ -842,9 +842,9 @@ const Token* CheckUninitVar::checkLoopBodyRecursive(const Token *start, const Va
|
||||||
if (!Token::simpleMatch(top->previous(), "for (") || !Token::simpleMatch(top->link(), ") {"))
|
if (!Token::simpleMatch(top->previous(), "for (") || !Token::simpleMatch(top->link(), ") {"))
|
||||||
continue;
|
continue;
|
||||||
const Token *bodyStart = top->link()->next();
|
const Token *bodyStart = top->link()->next();
|
||||||
const Token *errorToken = checkLoopBodyRecursive(bodyStart, var, alloc, membervar, bailout);
|
const Token *errorToken1 = checkLoopBodyRecursive(bodyStart, var, alloc, membervar, bailout);
|
||||||
if (errorToken)
|
if (errorToken1)
|
||||||
return errorToken;
|
return errorToken1;
|
||||||
if (bailout)
|
if (bailout)
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue