diff --git a/lib/checkcondition.cpp b/lib/checkcondition.cpp index 3294c7fb5..df6a4e566 100644 --- a/lib/checkcondition.cpp +++ b/lib/checkcondition.cpp @@ -469,7 +469,7 @@ void CheckCondition::duplicateCondition() } } if (tok3->varId() > 0 && - isVariableChanged(scope.classDef->next(), cond2, astIsPointer(tok3), tok3->varId(), false, mSettings, mTokenizer->isCPP())) { + isVariableChanged(scope.classDef->next(), cond2, tok3->valueType() ? tok3->valueType()->pointer : 0, tok3->varId(), false, mSettings, mTokenizer->isCPP())) { modified = true; return ChildrenToVisit::done; }