Fix crash
This commit is contained in:
parent
4d788a7046
commit
51c2ded23f
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue