summaryrefslogtreecommitdiffstats
path: root/generic/tclRegexp.c
diff options
context:
space:
mode:
authorhobbs <hobbs>2006-04-07 01:14:26 (GMT)
committerhobbs <hobbs>2006-04-07 01:14:26 (GMT)
commitd5705afd70338dea9fc2e3b2bcdf7432772581bb (patch)
treebbc2dc49bd7bec1c3e7f4c3966616ba38977022c /generic/tclRegexp.c
parent94a629dcd8e5a57c9569333179e9b26f0adbd271 (diff)
downloadtcl-d5705afd70338dea9fc2e3b2bcdf7432772581bb.zip
tcl-d5705afd70338dea9fc2e3b2bcdf7432772581bb.tar.gz
tcl-d5705afd70338dea9fc2e3b2bcdf7432772581bb.tar.bz2
* generic/tclRegexp.c (FinalizeRegexp): full reset data to
indicate that readiness for reinitialization.
Diffstat (limited to 'generic/tclRegexp.c')
-rw-r--r--generic/tclRegexp.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/generic/tclRegexp.c b/generic/tclRegexp.c
index 276ea55..7e2a875 100644
--- a/generic/tclRegexp.c
+++ b/generic/tclRegexp.c
@@ -10,7 +10,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclRegexp.c,v 1.14.4.1 2005/11/27 02:34:41 das Exp $
+ * RCS: @(#) $Id: tclRegexp.c,v 1.14.4.2 2006/04/07 01:14:28 hobbs Exp $
*/
#include "tclInt.h"
@@ -1024,5 +1024,11 @@ FinalizeRegexp(clientData)
FreeRegexp(regexpPtr);
}
ckfree(tsdPtr->patterns[i]);
+ tsdPtr->patterns[i] = NULL;
}
+ /*
+ * We may find ourselves reinitialized if another finalization routine
+ * invokes regexps.
+ */
+ tsdPtr->initialized = 0;
}