note that some longjmp don’t handle 0 properly

cf. <500C1B2E.9030602@zytor.com>
This commit is contained in:
tg
2012-07-22 15:56:51 +00:00
parent 058e7f8ed4
commit aedb299057
2 changed files with 7 additions and 2 deletions

3
main.c
View File

@ -34,7 +34,7 @@
#include <locale.h>
#endif
__RCSID("$MirOS: src/bin/mksh/main.c,v 1.225 2012/07/01 15:38:06 tg Exp $");
__RCSID("$MirOS: src/bin/mksh/main.c,v 1.226 2012/07/22 15:56:50 tg Exp $");
extern char **environ;
@ -844,6 +844,7 @@ shell(Source * volatile s, volatile bool toplevel)
}
/* return to closest error handler or shell(), exit if none found */
/* note: i MUST NOT be 0 */
void
unwind(int i)
{