aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--shell/ash.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 4ca4c6c56..5df0ba625 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -10934,11 +10934,6 @@ preadbuffer(void)
10934 char *q; 10934 char *q;
10935 int more; 10935 int more;
10936 10936
10937 if (unlikely(g_parsefile->strpush)) {
10938 popstring();
10939 return __pgetc();
10940 }
10941
10942 if (g_parsefile->buf == NULL) { 10937 if (g_parsefile->buf == NULL) {
10943 pgetc_debug("preadbuffer PEOF1"); 10938 pgetc_debug("preadbuffer PEOF1");
10944 return PEOF; 10939 return PEOF;
@@ -11053,8 +11048,13 @@ static int __pgetc(void)
11053 11048
11054 if (--g_parsefile->left_in_line >= 0) 11049 if (--g_parsefile->left_in_line >= 0)
11055 c = (unsigned char)*g_parsefile->next_to_pgetc++; 11050 c = (unsigned char)*g_parsefile->next_to_pgetc++;
11056 else 11051 else {
11052 if (unlikely(g_parsefile->strpush)) {
11053 popstring();
11054 return __pgetc();
11055 }
11057 c = preadbuffer(); 11056 c = preadbuffer();
11057 }
11058 11058
11059 g_parsefile->lastc[1] = g_parsefile->lastc[0]; 11059 g_parsefile->lastc[1] = g_parsefile->lastc[0];
11060 g_parsefile->lastc[0] = c; 11060 g_parsefile->lastc[0] = c;