summaryrefslogtreecommitdiffstats
path: root/generic/tclExecute.c
diff options
context:
space:
mode:
authorhobbs <hobbs>2007-12-07 21:08:43 (GMT)
committerhobbs <hobbs>2007-12-07 21:08:43 (GMT)
commitaeb2a84dc4e3d3c70aa56a9e7e9f23d5f6f7f4b8 (patch)
treebec69f7c4d114859956ed32de8a0c7d54be10346 /generic/tclExecute.c
parent46f0613b28368ae48ed31ea8ebf08fcdeec3a8ce (diff)
downloadtcl-aeb2a84dc4e3d3c70aa56a9e7e9f23d5f6f7f4b8.zip
tcl-aeb2a84dc4e3d3c70aa56a9e7e9f23d5f6f7f4b8.tar.gz
tcl-aeb2a84dc4e3d3c70aa56a9e7e9f23d5f6f7f4b8.tar.bz2
* generic/tclExecute.c (TclExecuteByteCode INST_REGEXP): Use
TCL_REG_NOSUB as we come here without capture vars.
Diffstat (limited to 'generic/tclExecute.c')
-rw-r--r--generic/tclExecute.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/generic/tclExecute.c b/generic/tclExecute.c
index 2b75c20..e537b4b 100644
--- a/generic/tclExecute.c
+++ b/generic/tclExecute.c
@@ -13,7 +13,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclExecute.c,v 1.353 2007/11/19 17:25:22 das Exp $
+ * RCS: @(#) $Id: tclExecute.c,v 1.354 2007/12/07 21:08:43 hobbs Exp $
*/
#include "tclInt.h"
@@ -4239,8 +4239,11 @@ TclExecuteByteCode(
valuePtr = OBJ_AT_TOS; /* String */
value2Ptr = OBJ_UNDER_TOS; /* Pattern */
+ /*
+ * Use TCL_REG_NOSUB as we come here without capture vars
+ */
regExpr = Tcl_GetRegExpFromObj(interp, value2Ptr,
- TCL_REG_ADVANCED | (nocase ? TCL_REG_NOCASE : 0));
+ TCL_REG_ADVANCED|TCL_REG_NOSUB|(nocase ? TCL_REG_NOCASE : 0));
if (regExpr == NULL) {
match = -1;
} else {