diff options
| author | Barton E. Schaefer <schaefer@zsh.org> | 2016-11-05 13:54:16 -0700 |
|---|---|---|
| committer | Barton E. Schaefer <schaefer@zsh.org> | 2016-11-05 13:54:16 -0700 |
| commit | 2c56c7e5e809476fc6511a9e634d2a977593ef9e (patch) | |
| tree | 00dc80fc97d4b085ef38f00ff7902352564acec5 /Src | |
| parent | 39838: another missing unqueue_signals() (diff) | |
| download | zsh-2c56c7e5e809476fc6511a9e634d2a977593ef9e.tar zsh-2c56c7e5e809476fc6511a9e634d2a977593ef9e.tar.gz zsh-2c56c7e5e809476fc6511a9e634d2a977593ef9e.tar.bz2 zsh-2c56c7e5e809476fc6511a9e634d2a977593ef9e.tar.lz zsh-2c56c7e5e809476fc6511a9e634d2a977593ef9e.tar.xz zsh-2c56c7e5e809476fc6511a9e634d2a977593ef9e.tar.zst zsh-2c56c7e5e809476fc6511a9e634d2a977593ef9e.zip | |
39839: fix "return" from "if" condition
Diffstat (limited to 'Src')
| -rw-r--r-- | Src/loop.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Src/loop.c b/Src/loop.c index b791a898d..f65c72bf4 100644 --- a/Src/loop.c +++ b/Src/loop.c @@ -570,7 +570,8 @@ execif(Estate state, int do_exec) cmdpop(); } else { noerrexit = olderrexit; - lastval = 0; + if (!retflag) + lastval = 0; } state->pc = end; |
