summaryrefslogtreecommitdiffstats
path: root/generic/tclUtil.c
diff options
context:
space:
mode:
authorhobbs <hobbs>2008-08-21 23:19:02 (GMT)
committerhobbs <hobbs>2008-08-21 23:19:02 (GMT)
commit9a3d1bd1e1111afb44a1c11c43e2f24a81a485c1 (patch)
treea8fca5285c96617cf3657e31c0d1504d11f63f38 /generic/tclUtil.c
parent49716196b5616f9cb7df532edcd55a3180dff91c (diff)
downloadtcl-9a3d1bd1e1111afb44a1c11c43e2f24a81a485c1.zip
tcl-9a3d1bd1e1111afb44a1c11c43e2f24a81a485c1.tar.gz
tcl-9a3d1bd1e1111afb44a1c11c43e2f24a81a485c1.tar.bz2
* tests/regexp.test, tests/regexpComp.test: correct re2glob ***=
* generic/tclUtil.c (TclReToGlob): translation from exact to anywhere-in-string match. [Bug 2065115]
Diffstat (limited to 'generic/tclUtil.c')
-rw-r--r--generic/tclUtil.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/generic/tclUtil.c b/generic/tclUtil.c
index e2f01a4..9464cd5 100644
--- a/generic/tclUtil.c
+++ b/generic/tclUtil.c
@@ -11,7 +11,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclUtil.c,v 1.97.2.1 2008/08/17 14:12:35 msofer Exp $
+ * RCS: @(#) $Id: tclUtil.c,v 1.97.2.2 2008/08/21 23:19:05 hobbs Exp $
*/
#include "tclInt.h"
@@ -3278,10 +3278,9 @@ TclReToGlob(
*/
if ((reStrLen >= 4) && (memcmp("***=", reStr, 4) == 0)) {
- if (exactPtr) {
- *exactPtr = 1;
- }
+ Tcl_DStringAppend(dsPtr, "*", 1);
Tcl_DStringAppend(dsPtr, reStr + 4, reStrLen - 4);
+ Tcl_DStringAppend(dsPtr, "*", 1);
return TCL_OK;
}