summaryrefslogtreecommitdiff
path: root/Src/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'Src/init.c')
-rw-r--r--Src/init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/init.c b/Src/init.c
index 3da057de9..cbfaf5ad0 100644
--- a/Src/init.c
+++ b/Src/init.c
@@ -107,7 +107,6 @@ loop(int toplevel, int justonce)
pushheap();
for (;;) {
freeheap();
- errflag = 0;
hbegin(1); /* init history mech */
if (isset(SHINSTDIN)) {
setblock_stdin();
@@ -116,6 +115,7 @@ loop(int toplevel, int justonce)
stophist = 3;
preprompt();
stophist = hstop;
+ errflag = 0;
}
}
intr(); /* interrupts on */