summaryrefslogtreecommitdiffstats
path: root/generic/tclVar.c
diff options
context:
space:
mode:
Diffstat (limited to 'generic/tclVar.c')
-rw-r--r--generic/tclVar.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/generic/tclVar.c b/generic/tclVar.c
index d87cdf9..eb7cf53 100644
--- a/generic/tclVar.c
+++ b/generic/tclVar.c
@@ -16,7 +16,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclVar.c,v 1.178 2009/03/24 09:30:07 dkf Exp $
+ * RCS: @(#) $Id: tclVar.c,v 1.179 2009/07/16 21:24:40 dgp Exp $
*/
#include "tclInt.h"
@@ -516,12 +516,15 @@ TclObjLookupVarEx(
const Tcl_ObjType *typePtr = part1Ptr->typePtr;
const char *errMsg = NULL;
CallFrame *varFramePtr = iPtr->varFramePtr;
+#if ENABLE_NS_VARNAME_CACHING
Namespace *nsPtr;
+#endif
const char *part2 = part2Ptr? TclGetString(part2Ptr):NULL;
char *newPart2 = NULL;
*arrayPtrPtr = NULL;
+#if ENABLE_NS_VARNAME_CACHING
if (varFramePtr) {
nsPtr = varFramePtr->nsPtr;
} else {
@@ -532,6 +535,7 @@ TclObjLookupVarEx(
nsPtr = NULL;
}
+#endif
if (typePtr == &localVarNameType) {
int localIndex;