Fixed #2365 (Internal error: Token::Match called with varid 0)

This commit is contained in:
Daniel Marjamäki 2010-12-27 14:06:32 +01:00
parent 6404374bba
commit 660de98c0c
1 changed files with 1 additions and 1 deletions

View File

@ -1667,7 +1667,7 @@ void CheckOther::functionVariableUsage()
else
variables.write(varid1);
}
else if (Token::Match(tok, "%varid% .", varid1))
else if (varid1 && Token::Match(tok, "%varid% .", varid1))
{
variables.use(varid1);
}