From 541e5e249023ff8cc99192604a92a5a5360f175d Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Mon, 4 Aug 2008 19:47:46 +0000 Subject: 25385: fix another bug with trapreturn trampling on status --- Src/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Src/init.c') diff --git a/Src/init.c b/Src/init.c index a21b39639..f2dc99af7 100644 --- a/Src/init.c +++ b/Src/init.c @@ -191,7 +191,7 @@ loop(int toplevel, int justonce) exit(lastval); if (((!interact || sourcelevel) && errflag) || retflag) break; - if (trapreturn >= 0) { + if (intrap && trapreturn >= 0) { lastval = trapreturn; trapreturn = 0; } -- cgit 1.4.1