Fix some potential null pointer crashes
This commit is contained in:
parent
ebee7928e2
commit
3b0643a000
|
@ -41,9 +41,15 @@ void CheckSecurity::readnum()
|
||||||
tok = tok->next();
|
tok = tok->next();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!tok)
|
||||||
|
break;
|
||||||
|
|
||||||
// Skip ahead a little with tok..
|
// Skip ahead a little with tok..
|
||||||
tok = tok->tokAt(2);
|
tok = tok->tokAt(2);
|
||||||
|
|
||||||
|
if (!tok)
|
||||||
|
break;
|
||||||
|
|
||||||
// Now take a look at the variable usage..
|
// Now take a look at the variable usage..
|
||||||
if (varId == 0)
|
if (varId == 0)
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in New Issue