use Token::link instead of findmatch to find ']'

This commit is contained in:
Daniel Marjamäki 2009-11-03 22:48:41 +01:00
parent 00b62442b6
commit 3c82fbb73a
1 changed files with 1 additions and 1 deletions

View File

@ -1297,7 +1297,7 @@ static const Token *uninitvar_checkscope(const Token * const tokens, const Token
if (Token::simpleMatch(tok->next(), "["))
{
const Token *tok2 = Token::findmatch(tok, "]");
const Token *tok2 = tok->next()->link();
if (Token::simpleMatch(tok2 ? tok2->next() : 0, "="))
{
init = true;