summary refs log tree commit diff
path: root/Src/exec.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2005-04-27 09:58:42 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2005-04-27 09:58:42 +0000
commit2c208c7743e240d155b2650f74c374ecab08644f (patch)
treec4dadb93283950a958a5fa464230137c420862f1 /Src/exec.c
parentf49c66fc6af5293464a89b9c7e448ebf7dc60602 (diff)
downloadzsh-2c208c7743e240d155b2650f74c374ecab08644f.tar.gz
zsh-2c208c7743e240d155b2650f74c374ecab08644f.tar.xz
zsh-2c208c7743e240d155b2650f74c374ecab08644f.zip
21197: Fix LOCAL_TRAPS inside another trap
Diffstat (limited to 'Src/exec.c')
-rw-r--r--Src/exec.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/Src/exec.c b/Src/exec.c
index f5feba50b..515a41f9b 100644
--- a/Src/exec.c
+++ b/Src/exec.c
@@ -3669,8 +3669,7 @@ doshfunc(char *name, Eprog prog, LinkList doshargs, int flags, int noreturnval)
 	memcpy(oldpipestats, pipestats, bytes);
     }
 
-    if (!intrap)
-	starttrapscope();
+    starttrapscope();
 
     tab = pparams;
     if (!(flags & PM_UNDEFINED))
@@ -3770,8 +3769,7 @@ doshfunc(char *name, Eprog prog, LinkList doshargs, int flags, int noreturnval)
 	opts[LOCALOPTIONS] = saveopts[LOCALOPTIONS];
     }
 
-    if (!intrap)
-	endtrapscope();
+    endtrapscope();
 
     if (trapreturn < -1)
 	trapreturn++;