1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-11-08 08:40:57 +01:00

39839: fix "return" from "if" condition

This commit is contained in:
Barton E. Schaefer 2016-11-05 13:54:16 -07:00
parent d91ffb1db2
commit 2c56c7e5e8
2 changed files with 4 additions and 1 deletions

View file

@ -1,5 +1,7 @@
2016-11-05 Barton E. Schaefer <schaefer@zsh.org>
* 39839: Src/loop.c: fix "return" from "if" condition
* 39838: Src/builtin.c: another missing unqueue_signals()
2016-11-04 Oliver Kiddle <opk@zsh.org>

View file

@ -570,7 +570,8 @@ execif(Estate state, int do_exec)
cmdpop();
} else {
noerrexit = olderrexit;
lastval = 0;
if (!retflag)
lastval = 0;
}
state->pc = end;