summaryrefslogtreecommitdiffstats
path: root/generic/tclRegexp.c
diff options
context:
space:
mode:
authorhobbs <hobbs@noemail.net>2006-04-07 01:11:49 (GMT)
committerhobbs <hobbs@noemail.net>2006-04-07 01:11:49 (GMT)
commitf0a85f9d1d502df807c43a88a08e32558aba42ac (patch)
treeb0ae85d6f30df92c6db7100033ca3cafc3e38716 /generic/tclRegexp.c
parent3156fc0d9dd536cf33eeb68d93e01d100185af99 (diff)
downloadtcl-f0a85f9d1d502df807c43a88a08e32558aba42ac.zip
tcl-f0a85f9d1d502df807c43a88a08e32558aba42ac.tar.gz
tcl-f0a85f9d1d502df807c43a88a08e32558aba42ac.tar.bz2
* generic/tclRegexp.c (FinalizeRegexp): full reset data to
indicate that readiness for reinitialization. FossilOrigin-Name: 46bd39687923ae98b1ba86a917124857d181e5f1
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 b5e3bec..a9ddf03 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.21 2005/11/02 00:55:06 dkf Exp $
+ * RCS: @(#) $Id: tclRegexp.c,v 1.22 2006/04/07 01:12:11 hobbs Exp $
*/
#include "tclInt.h"
@@ -1014,7 +1014,13 @@ FinalizeRegexp(
FreeRegexp(regexpPtr);
}
ckfree(tsdPtr->patterns[i]);
+ tsdPtr->patterns[i] = NULL;
}
+ /*
+ * We may find ourselves reinitialized if another finalization routine
+ * invokes regexps.
+ */
+ tsdPtr->initialized = 0;
}
/*