Skip to content

Commit bcc7c5c

Browse files
committed
Use astIsPointer to avoid crashes
1 parent e4a54a2 commit bcc7c5c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/checkcondition.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ void CheckCondition::duplicateCondition()
469469
}
470470
}
471471
if (tok3->varId() > 0 &&
472-
isVariableChanged(scope.classDef->next(), cond2, tok3->valueType()->pointer, tok3->varId(), false, mSettings, mTokenizer->isCPP())) {
472+
isVariableChanged(scope.classDef->next(), cond2, astIsPointer(tok3), tok3->varId(), false, mSettings, mTokenizer->isCPP())) {
473473
modified = true;
474474
return ChildrenToVisit::done;
475475
}

0 commit comments

Comments
 (0)