Bug hunting; avoid crash when argument is NULL
This commit is contained in:
parent
7820b5dbcc
commit
5ac0eb100c
|
@ -1944,7 +1944,7 @@ void ExprEngine::runChecks(ErrorLogger *errorLogger, const Tokenizer *tokenizer,
|
|||
|
||||
if (parent->astOperand1()->function()) {
|
||||
const Variable *arg = parent->astOperand1()->function()->getArgumentVar(num - 1);
|
||||
if (arg->nameToken()) {
|
||||
if (arg && arg->nameToken()) {
|
||||
std::string bad;
|
||||
|
||||
MathLib::bigint low;
|
||||
|
|
Loading…
Reference in New Issue