Skip to content

Commit f60c18c

Browse files
Update checkleakautovar.cpp
1 parent 682f9d8 commit f60c18c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/checkleakautovar.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ bool CheckLeakAutoVar::checkScope(const Token * const startToken,
590590
astOperand2AfterCommas = astOperand2AfterCommas->astOperand2();
591591

592592
// Recursively scan variable comparisons in condition
593-
for (const Token* compTok : getComparisonTokens(astOperand2AfterCommas) {
593+
for (const Token* compTok : getComparisonTokens(astOperand2AfterCommas)) {
594594
visitAstNodes(compTok, [&](const Token* tok3) {
595595
if (!tok3)
596596
return ChildrenToVisit::none;

0 commit comments

Comments
 (0)