Skip to content

Commit 5ee0115

Browse files
Update checkother.cpp
1 parent 11d003c commit 5ee0115

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/checkother.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ void CheckOther::checkRedundantAssignment()
681681
// Is there a redundant assignment?
682682
const Token *start;
683683
if (tok->isAssignmentOp())
684-
start = tok->next();
684+
start = tok->astOperand2();
685685
else
686686
start = tok->findExpressionStartEndTokens().second->next();
687687

0 commit comments

Comments
 (0)