summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2014-10-28 10:32:03 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2014-10-28 10:32:03 +0800
commita31c812b02d7fc331f8a0c5aedbbf12b4025c1db (patch)
tree11831b7435e94df92ad68b2bf69ae0957249607f /src
parent[BUILTIN] Handle -- in dotcmd (diff)
downloaddash-a31c812b02d7fc331f8a0c5aedbbf12b4025c1db.tar.gz
dash-a31c812b02d7fc331f8a0c5aedbbf12b4025c1db.zip
[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 <herbert@gondor.apana.org.au>
Diffstat (limited to 'src')
-rw-r--r--src/parser.c2
1 files changed, 0 insertions, 2 deletions
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: