diff options
Diffstat (limited to 'generic/tclProc.c')
-rw-r--r-- | generic/tclProc.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/generic/tclProc.c b/generic/tclProc.c index c6e0219..9a7a422 100644 --- a/generic/tclProc.c +++ b/generic/tclProc.c @@ -11,7 +11,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclProc.c,v 1.126 2007/07/31 17:03:39 msofer Exp $ + * RCS: @(#) $Id: tclProc.c,v 1.127 2007/08/04 18:32:27 msofer Exp $ */ #include "tclInt.h" @@ -1130,6 +1130,14 @@ TclInitCompiledLocals( } codePtr = bodyPtr->internalRep.otherValuePtr; + if (framePtr->numCompiledLocals) { + if (!codePtr->localCachePtr) { + InitLocalCache(framePtr->procPtr) ; + } + framePtr->localCachePtr = codePtr->localCachePtr; + framePtr->localCachePtr->refCount++; + } + InitCompiledLocals(interp, codePtr, varPtr, nsPtr); } |