From d5491215cec13204eacfa517d81f5696c765c29c Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Mon, 1 May 2017 15:52:55 +0300 Subject: Additional fix for --source, and add test case. --- awkgram.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'awkgram.c') 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) { -- cgit v1.2.3