Fix crash

This commit is contained in:
Daniel Marjamäki 2018-01-25 19:42:50 +01:00
parent 4d788a7046
commit 51c2ded23f
1 changed files with 1 additions and 1 deletions

View File

@ -1362,7 +1362,7 @@ static int isCallFunction(const Scope *scope, int argnr, const Token **tok)
} }
if (!prev || !Token::Match(prev->previous(), "%name% (")) if (!prev || !Token::Match(prev->previous(), "%name% ("))
break; break;
if (!prev->astOperand1()->function()) if (!prev->astOperand1() || !prev->astOperand1()->function())
break; break;
*tok = prev->previous(); *tok = prev->previous();
return argnr2; return argnr2;