[apparmor] [PATCH 2/9] Remove extaneous BEGIN(INITIAL) from comment rule.

John Johansen john.johansen at canonical.com
Wed Dec 28 03:01:45 UTC 2011


The affected comment rule is already in the INITIAL start condition
so BEGIN(INITIAL) is extraneous and will cause problems when switching
to a stack of start conditions.

Signed-off-by: John Johansen <john.johansen at canonical.com>
---
 parser/parser_lex.l |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/parser/parser_lex.l b/parser/parser_lex.l
index c3538ce..83800f4 100644
--- a/parser/parser_lex.l
+++ b/parser/parser_lex.l
@@ -515,7 +515,6 @@ LT_EQUAL	<=
 			DUMP_PREPROCESS;
 			PDEBUG("comment(%d): %s\n", current_lineno, yytext);
 			current_lineno++;
-			BEGIN(INITIAL);
 			}
 
 {END_OF_RULE}		{ DUMP_PREPROCESS; return TOK_END_OF_RULE; }
-- 
1.7.7.3




More information about the AppArmor mailing list