Fix some potential null pointer crashes

This commit is contained in:
Reijo Tomperi 2009-04-03 14:55:36 +03:00
parent ebee7928e2
commit 3b0643a000
1 changed files with 6 additions and 0 deletions

View File

@ -41,9 +41,15 @@ void CheckSecurity::readnum()
tok = tok->next();
}
if (!tok)
break;
// Skip ahead a little with tok..
tok = tok->tokAt(2);
if (!tok)
break;
// Now take a look at the variable usage..
if (varId == 0)
continue;