summaryrefslogtreecommitdiffstats
path: root/generic/tclAssembly.c
diff options
context:
space:
mode:
authorgahr <gahr@gahr.ch>2016-05-23 11:40:10 (GMT)
committergahr <gahr@gahr.ch>2016-05-23 11:40:10 (GMT)
commit350efb174951691350ccfae2352f7a59775d604e (patch)
treebf6524a31d689158f8511caf4f7c943f452ae213 /generic/tclAssembly.c
parentbcaca1bf7b9159ba02add2f07ddff74fc872093f (diff)
parentc559956bdbeb3be7c36bff03736f2f58b326085b (diff)
downloadtcl-gahr_tip_447.zip
tcl-gahr_tip_447.tar.gz
tcl-gahr_tip_447.tar.bz2
Merge trunkgahr_tip_447
Diffstat (limited to 'generic/tclAssembly.c')
-rw-r--r--generic/tclAssembly.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/generic/tclAssembly.c b/generic/tclAssembly.c
index 4ad31d2..8dd23a0 100644
--- a/generic/tclAssembly.c
+++ b/generic/tclAssembly.c
@@ -3982,10 +3982,12 @@ UnstackExpiredCatches(
while (catchDepth > bbPtr->catchDepth) {
--catchDepth;
- range = envPtr->exceptArrayPtr + catchIndices[catchDepth];
- range->numCodeBytes = bbPtr->startOffset - range->codeOffset;
- catches[catchDepth] = NULL;
- catchIndices[catchDepth] = -1;
+ if (catches[catchDepth] != NULL) {
+ range = envPtr->exceptArrayPtr + catchIndices[catchDepth];
+ range->numCodeBytes = bbPtr->startOffset - range->codeOffset;
+ catches[catchDepth] = NULL;
+ catchIndices[catchDepth] = -1;
+ }
}
/*