CheckOther: minor bug fix

This commit is contained in:
Daniel Marjamäki 2007-06-10 18:26:06 +00:00
parent 6ed70ae745
commit 9af3e36c4d
1 changed files with 3 additions and 0 deletions

View File

@ -248,7 +248,10 @@ void WarningIf()
for (TOKEN *tok = tokens; tok; tok = tok->next)
{
if (!newstatement || strcmp(tok->str,"if"))
{
newstatement = (strchr("{};",tok->str[0]) != NULL);
continue;
}
int parlevel = 0;
for (TOKEN *tok2 = tok->next; tok2; tok2 = tok2->next)