about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <p.w.stephenson@ntlworld.com>2014-12-07 17:09:33 +0000
committerPeter Stephenson <p.w.stephenson@ntlworld.com>2014-12-07 17:09:33 +0000
commit470255c8513774db6b56e1569c950bbde4cf3af4 (patch)
tree26c97aca7f67806a767fc7734f26bc772b1bc6f4
parentab09c24a49951bfafb0ebd075fdd3e99e064f5aa (diff)
downloadzsh-470255c8513774db6b56e1569c950bbde4cf3af4.tar.gz
zsh-470255c8513774db6b56e1569c950bbde4cf3af4.tar.xz
zsh-470255c8513774db6b56e1569c950bbde4cf3af4.zip
Remove unnecessary ternary setting lastval.
-rw-r--r--Src/exec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/exec.c b/Src/exec.c
index c18f3cd1e..6a7dbb1e1 100644
--- a/Src/exec.c
+++ b/Src/exec.c
@@ -2702,7 +2702,7 @@ execcmd(Estate state, int input, int output, int how, int last1)
 		    if (varspc)
 			addvars(state, varspc, 0);
 		    if (errflag)
-			lastval = errflag ? 1 : 0;
+			lastval = 1;
 		    else
 			lastval = cmdoutval;
 		    if (isset(XTRACE)) {