Another fix for the crash

This commit is contained in:
Daniel Marjamäki 2020-10-22 06:59:13 +02:00
parent bcc7c5cd50
commit 33844b28ab
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, 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;
}