summaryrefslogtreecommitdiffstats
path: root/generic/tclCompCmdsSZ.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2022-04-26 15:59:33 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2022-04-26 15:59:33 (GMT)
commitbc6a36f9493f9a335838085a41f225ed458e4075 (patch)
treed49af1e5860d63c02ddce6079f06ae40a6beb100 /generic/tclCompCmdsSZ.c
parent40c481c41a592c3498ba83422edd7d1394b5a1b0 (diff)
parent208f8c30a1c20162f7ec27c09afb7818153f254d (diff)
downloadtcl-bc6a36f9493f9a335838085a41f225ed458e4075.zip
tcl-bc6a36f9493f9a335838085a41f225ed458e4075.tar.gz
tcl-bc6a36f9493f9a335838085a41f225ed458e4075.tar.bz2
Merge 9.0
Diffstat (limited to 'generic/tclCompCmdsSZ.c')
-rw-r--r--generic/tclCompCmdsSZ.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/generic/tclCompCmdsSZ.c b/generic/tclCompCmdsSZ.c
index 54b7734..39c03d0 100644
--- a/generic/tclCompCmdsSZ.c
+++ b/generic/tclCompCmdsSZ.c
@@ -2980,6 +2980,9 @@ TclCompileTryCmd(
goto failedToCompile;
}
finallyToken = TokenAfter(tokenPtr);
+ if (finallyToken->type != TCL_TOKEN_SIMPLE_WORD) {
+ goto failedToCompile;
+ }
} else {
goto failedToCompile;
}