summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorWayne Davison <wayned@users.sourceforge.net>2004-01-05 17:07:21 +0000
committerWayne Davison <wayned@users.sourceforge.net>2004-01-05 17:07:21 +0000
commit5a8969ec2e944b2ac56ae3799d244f660da01573 (patch)
tree1f4795b47fc1827fe3c9f1c6b81feb613e6d412f /Src
parent76bd48d67422c28d54ef75ef313b8763f6d60760 (diff)
downloadzsh-5a8969ec2e944b2ac56ae3799d244f660da01573.tar.gz
zsh-5a8969ec2e944b2ac56ae3799d244f660da01573.tar.xz
zsh-5a8969ec2e944b2ac56ae3799d244f660da01573.zip
Changed bin_eval() to default lastval to 0, just in case we have an
empty eval string.
Diffstat (limited to 'Src')
-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;