Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github committed Jan 31, 2024
1 parent 7bbfa0a commit c724d88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/checkstl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3152,7 +3152,7 @@ void CheckStl::eraseIteratorOutOfBounds()
if (!tok->valueType())
continue;
const Library::Container* container = tok->valueType()->container;
if (!container || (!astIsLHS(tok) && !Token::simpleMatch(tok->astParent(), ".")))
if (!container || !astIsLHS(tok) || !Token::simpleMatch(tok->astParent(), "."))
continue;
const Token* const ftok = tok->astParent()->astOperand2();
const Library::Container::Action action = container->getAction(ftok->str());
Expand Down

0 comments on commit c724d88

Please sign in to comment.