From 5bc5c96c8fd8a2de7ac0a40a981ad85b0f4d9418 Mon Sep 17 00:00:00 2001 From: Paul Date: Tue, 21 Jul 2020 13:20:39 -0500 Subject: [PATCH] Fix cppcheck error --- lib/checkcondition.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/checkcondition.cpp b/lib/checkcondition.cpp index 22f166646..bdb5a5c80 100644 --- a/lib/checkcondition.cpp +++ b/lib/checkcondition.cpp @@ -1123,7 +1123,7 @@ void CheckCondition::checkIncorrectLogicOperator() // Comparison #1 (LHS) const Token *comp1 = tok->astOperand1(); - if (comp1 && comp1->str() == tok->str()) + if (comp1->str() == tok->str()) comp1 = comp1->astOperand2(); // Comparison #2 (RHS)