From a31c812b02d7fc331f8a0c5aedbbf12b4025c1db Mon Sep 17 00:00:00 2001 From: Herbert Xu Date: Tue, 28 Oct 2014 10:32:03 +0800 Subject: [PARSER] Removed unnecessary pungetc on EOF from parser Doing a pungetc on an EOF is a noop and is only useful when we don't know what character we're putting back. This patch removes an unnecessary pungetc when we know it's EOF. Signed-off-by: Herbert Xu --- src/parser.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'src') diff --git a/src/parser.c b/src/parser.c index f6c43be..f0c919d 100644 --- a/src/parser.c +++ b/src/parser.c @@ -208,8 +208,6 @@ list(int nlflag) case TEOF: if (heredoclist) parseheredoc(); - else - pungetc(); /* push back EOF on input */ tokpushback++; return n1; default: -- cgit 1.4.1