Skip to content

Commit

Permalink
Update valueflow.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github committed Aug 7, 2024
1 parent bf6ae27 commit b8522c5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/valueflow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7141,6 +7141,8 @@ static void valueFlowContainerSize(const TokenList& tokenlist,
const Token* containerTok = tok->astOperand1();
if (containerTok->exprId() == 0)
continue;
if (containerTok->variable() && containerTok->variable()->isArray())
continue;
const Library::Container::Action action = containerTok->valueType()->container->getAction(tok->strAt(1));
if (action == Library::Container::Action::CLEAR) {
ValueFlow::Value value(0);
Expand Down

0 comments on commit b8522c5

Please sign in to comment.