about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--Src/builtin.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Src/builtin.c b/Src/builtin.c
index 23946aba3..37e3db7eb 100644
--- a/Src/builtin.c
+++ b/Src/builtin.c
@@ -4155,6 +4155,7 @@ bin_eval(char *nam, char **argv, Options ops, int func)
 	errflag = 0;
 	return 1;
     }
+    lastval = 0;
     execode(prog, 1, 0);
     if (errflag) {
 	lastval = errflag;