Use astIsPointer to avoid crashes
This commit is contained in:
parent
e4a54a24db
commit
bcc7c5cd50
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue