Fixed #2365 (Internal error: Token::Match called with varid 0)
This commit is contained in:
parent
6404374bba
commit
660de98c0c
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue