Use astIsPointer to avoid crashes

This commit is contained in:
Daniel Marjamäki 2020-10-22 06:55:48 +02:00
parent e4a54a24db
commit bcc7c5cd50
1 changed files with 1 additions and 1 deletions

View File

@ -469,7 +469,7 @@ void CheckCondition::duplicateCondition()
}
}
if (tok3->varId() > 0 &&
isVariableChanged(scope.classDef->next(), cond2, tok3->valueType()->pointer, tok3->varId(), false, mSettings, mTokenizer->isCPP())) {
isVariableChanged(scope.classDef->next(), cond2, astIsPointer(tok3), tok3->varId(), false, mSettings, mTokenizer->isCPP())) {
modified = true;
return ChildrenToVisit::done;
}