Fixed SIGABRT in new checking

This commit is contained in:
Daniel Marjamäki 2010-04-10 21:28:49 +02:00
parent 5fed938f56
commit 1f022e281f
1 changed files with 1 additions and 1 deletions

View File

@ -1336,7 +1336,7 @@ private:
/** @brief Found array usage.. */
static void array_index(const Token *tok, std::list<ExecutionPath *> &checks, unsigned int varid1, unsigned int varid2)
{
if (varid1 == 0 || varid2 == 0)
if (checks.empty() || varid1 == 0 || varid2 == 0)
return;
// Locate array info corresponding to varid1