setVarIdStructMembers: Fixed code so loop will terminate properly

This commit is contained in:
Daniel Marjamäki 2016-05-22 21:42:10 +02:00
parent 710e066a9a
commit beabe110fd
1 changed files with 2 additions and 2 deletions

View File

@ -2470,8 +2470,8 @@ static void setVarIdStructMembers(Token **tok1,
tok = tok->tokAt(3);
while (tok->str() != "}") {
while (Token::Match(tok, "{|[|("))
tok = tok->link()->next();
if (Token::Match(tok, "{|[|("))
tok = tok->link();
if (Token::Match(tok->previous(), "[,{] . %name% =")) {
tok = tok->next();
const std::map<std::string, unsigned int>::iterator it = members.find(tok->str());