Fix cppcheck error
This commit is contained in:
parent
38e1b57bc9
commit
5bc5c96c8f
|
@ -1123,7 +1123,7 @@ void CheckCondition::checkIncorrectLogicOperator()
|
||||||
|
|
||||||
// Comparison #1 (LHS)
|
// Comparison #1 (LHS)
|
||||||
const Token *comp1 = tok->astOperand1();
|
const Token *comp1 = tok->astOperand1();
|
||||||
if (comp1 && comp1->str() == tok->str())
|
if (comp1->str() == tok->str())
|
||||||
comp1 = comp1->astOperand2();
|
comp1 = comp1->astOperand2();
|
||||||
|
|
||||||
// Comparison #2 (RHS)
|
// Comparison #2 (RHS)
|
||||||
|
|
Loading…
Reference in New Issue