diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2009-01-29 15:57:54 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2009-01-29 15:57:54 (GMT) |
commit | 1613b73f3d0c97fc20285de5b2c1e90eed432fdc (patch) | |
tree | 8bd0f5809a9a2ae43bcedeb5654b3693b1d2a8e1 /generic | |
parent | 7d0d8f85ee8ad595801e30135e4cde40d6707ccd (diff) | |
download | tcl-1613b73f3d0c97fc20285de5b2c1e90eed432fdc.zip tcl-1613b73f3d0c97fc20285de5b2c1e90eed432fdc.tar.gz tcl-1613b73f3d0c97fc20285de5b2c1e90eed432fdc.tar.bz2 |
Fix [Bug 2519474]
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tclNamesp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/generic/tclNamesp.c b/generic/tclNamesp.c index 63c3d1f..42e5a2b 100644 --- a/generic/tclNamesp.c +++ b/generic/tclNamesp.c @@ -23,7 +23,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclNamesp.c,v 1.187 2009/01/29 11:28:49 dkf Exp $ + * RCS: @(#) $Id: tclNamesp.c,v 1.188 2009/01/29 15:57:54 dkf Exp $ */ #include "tclInt.h" @@ -2451,7 +2451,8 @@ Tcl_FindCommand( */ cmdPtr = NULL; - if (cxtNsPtr->commandPathLength!=0 && strncmp(name, "::", 2)) { + if (cxtNsPtr->commandPathLength!=0 && strncmp(name, "::", 2) + && !(flags & TCL_NAMESPACE_ONLY)) { int i; Namespace *pathNsPtr, *realNsPtr, *dummyNsPtr; |