diff options
author | hobbs <hobbs> | 2006-04-07 01:11:50 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2006-04-07 01:11:50 (GMT) |
commit | ff1aeed46091825a1a52b5f03a39cecde7fbcac9 (patch) | |
tree | b0ae85d6f30df92c6db7100033ca3cafc3e38716 /generic | |
parent | 66eb0f67f7cc2d152c918f5ccfe94cd89a7581fe (diff) | |
download | tcl-ff1aeed46091825a1a52b5f03a39cecde7fbcac9.zip tcl-ff1aeed46091825a1a52b5f03a39cecde7fbcac9.tar.gz tcl-ff1aeed46091825a1a52b5f03a39cecde7fbcac9.tar.bz2 |
* generic/tclRegexp.c (FinalizeRegexp): full reset data to
indicate that readiness for reinitialization.
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; } /* |