aboutsummaryrefslogtreecommitdiffstats
path: root/awkgram.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2017-05-01 15:52:55 +0300
committerArnold D. Robbins <arnold@skeeve.com>2017-05-01 15:52:55 +0300
commitd5491215cec13204eacfa517d81f5696c765c29c (patch)
treea1492858f86e9a02301dd93aeb4023a9a84da482 /awkgram.c
parent8972aa34f007e12c3eb3270b79d39403d80a542f (diff)
downloadegawk-d5491215cec13204eacfa517d81f5696c765c29c.tar.gz
egawk-d5491215cec13204eacfa517d81f5696c765c29c.tar.bz2
egawk-d5491215cec13204eacfa517d81f5696c765c29c.zip
Additional fix for --source, and add test case.
Diffstat (limited to 'awkgram.c')
-rw-r--r--awkgram.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/awkgram.c b/awkgram.c
index aa7b4a49..b63a4efd 100644
--- a/awkgram.c
+++ b/awkgram.c
@@ -5526,12 +5526,8 @@ again:
if (lexeof) {
if (sourcefile->next == srcfiles)
return END_FILE;
- else {
+ else
next_sourcefile();
- if (get_src_buf())
- goto again;
- return END_SRC;
- }
}
#endif
if (lexptr == NULL || lexptr >= lexend) {