diff options
author | hobbs <hobbs@noemail.net> | 2006-04-07 01:11:49 (GMT) |
---|---|---|
committer | hobbs <hobbs@noemail.net> | 2006-04-07 01:11:49 (GMT) |
commit | f0a85f9d1d502df807c43a88a08e32558aba42ac (patch) | |
tree | b0ae85d6f30df92c6db7100033ca3cafc3e38716 /generic | |
parent | 3156fc0d9dd536cf33eeb68d93e01d100185af99 (diff) | |
download | tcl-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')
-rw-r--r-- | generic/tclRegexp.c | 8 |
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; } /* |