Memory leak: Minor updates in the notvar function

This commit is contained in:
Daniel Marjamäki 2008-11-09 17:47:00 +00:00
parent fd7ce880aa
commit b347ba5a7e
1 changed files with 2 additions and 1 deletions

View File

@ -264,11 +264,12 @@ static void instoken(TOKEN *tok, const char str[])
static bool notvar(const TOKEN *tok, const char *varnames[])
{
return bool( Match(tok, "! %var1% [;)&|]", varnames) ||
Match(tok, "! ( %var1% )", varnames) ||
Match(tok, "unlikely ( ! %var1% )", varnames) ||
Match(tok, "unlikely ( %var1% == NULL )", varnames) ||
Match(tok, "%var1% == NULL", varnames) ||
Match(tok, "NULL == %var1% [;)&|]", varnames) ||
Match(tok->next, "%var1% == 0", varnames) );
Match(tok, "%var1% == 0", varnames) );
}