From 9af3e36c4dd6a20af46a3a9777745e523fcd7311 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sun, 10 Jun 2007 18:26:06 +0000 Subject: [PATCH] CheckOther: minor bug fix --- CheckOther.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CheckOther.cpp b/CheckOther.cpp index 02233f7db..a8dc97f7a 100644 --- a/CheckOther.cpp +++ b/CheckOther.cpp @@ -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)