3619 Check that tok2->next() exists before using

This commit is contained in:
August Sodora 2012-02-25 11:13:40 -08:00 committed by PKEuS
parent 28431da0ae
commit fe9d491aae
1 changed files with 1 additions and 1 deletions

View File

@ -845,7 +845,7 @@ static Token *processFunc(Token *tok2, bool inOperator)
}
// skip over typedef parameter
if (tok2->next()->str() == "(") {
if (tok2->next() && tok2->next()->str() == "(") {
tok2 = tok2->next()->link();
if (tok2->next()->str() == "(")