summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2001-11-09 23:06:04 (GMT)
committerdgp <dgp@users.sourceforge.net>2001-11-09 23:06:04 (GMT)
commit6458b68fec3fa182b9c76b77efd135f7a2924b93 (patch)
tree012268e5787a44230c1be5af754701e4f9152a3a /generic
parentdee3e08e2b7e06d56d799d4aa5a9cb1b25ca1e8c (diff)
downloadtcl-6458b68fec3fa182b9c76b77efd135f7a2924b93.zip
tcl-6458b68fec3fa182b9c76b77efd135f7a2924b93.tar.gz
tcl-6458b68fec3fa182b9c76b77efd135f7a2924b93.tar.bz2
* tests/var.test:
* generic/tclVar.c: Corrected bug in [global] when dealing with variable names matching :*. [Bug 480176]
Diffstat (limited to 'generic')
-rw-r--r--generic/tclVar.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclVar.c b/generic/tclVar.c
index d3e2c4b..d4290d0 100644
--- a/generic/tclVar.c
+++ b/generic/tclVar.c
@@ -14,7 +14,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.38 2001/09/27 20:32:35 dgp Exp $
+ * RCS: @(#) $Id: tclVar.c,v 1.39 2001/11/09 23:06:04 dgp Exp $
*/
#include "tclInt.h"
@@ -4010,7 +4010,7 @@ Tcl_GlobalObjCmd(dummy, interp, objc, objv)
while ((tail > varName) && ((*tail != ':') || (*(tail-1) != ':'))) {
tail--;
}
- if (*tail == ':') {
+ if ((*tail == ':') && (tail > varName)) {
tail++;
}