Skip to content

Commit d781b29

Browse files
committed
valueflow: remove redundant token check
1 parent 726e0b1 commit d781b29

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lib/valueflow.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7144,7 +7144,7 @@ static void valueFlowDynamicBufferSize(const TokenList& tokenlist, const SymbolD
71447144
}
71457145

71467146
// Follow a pointer value through the result of a conditional expression.
7147-
if (Token::simpleMatch(exprParent, ":") && exprParent->astParent() && Token::simpleMatch(exprParent->astParent(), "?") && exprParent == exprParent->astParent()->astOperand2()) {
7147+
if (Token::simpleMatch(exprParent, ":") && Token::simpleMatch(exprParent->astParent(), "?") && exprParent == exprParent->astParent()->astOperand2()) {
71487148
expr = exprParent->astParent();
71497149
continue;
71507150
}

0 commit comments

Comments
 (0)