summaryrefslogtreecommitdiffstats
path: root/generic/tclRegexp.c
diff options
context:
space:
mode:
authorhobbs <hobbs>2006-04-07 01:11:50 (GMT)
committerhobbs <hobbs>2006-04-07 01:11:50 (GMT)
commitff1aeed46091825a1a52b5f03a39cecde7fbcac9 (patch)
treeb0ae85d6f30df92c6db7100033ca3cafc3e38716 /generic/tclRegexp.c
parent66eb0f67f7cc2d152c918f5ccfe94cd89a7581fe (diff)
downloadtcl-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/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;
}
/*