From 1a7484507d3195e3d349a4506dd7f908024df7e5 Mon Sep 17 00:00:00 2001 From: Herbert Xu Date: Mon, 24 Sep 2007 21:53:49 +0800 Subject: [PARSER] Remove superfluous arinest test in CENDQUOTE If arinest is set then the syntax must be ARISYNTAX. As such CENDQUOTE can never occur while arinest is set so we don't need to test for it. --- src/parser.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/parser.c b/src/parser.c index 279d49e..26c9046 100644 --- a/src/parser.c +++ b/src/parser.c @@ -932,10 +932,9 @@ quotemark: dblquote = 1; goto quotemark; case CENDQUOTE: - if (eofmark != NULL && arinest == 0 && - varnest == 0) { + if (eofmark && !varnest) USTPUTC(c, out); - } else { + else { if (dqvarnest == 0) { syntax = BASESYNTAX; dblquote = 0; -- cgit 1.4.1