diff options
author | dgp <dgp@noemail.net> | 2006-04-06 18:57:12 (GMT) |
---|---|---|
committer | dgp <dgp@noemail.net> | 2006-04-06 18:57:12 (GMT) |
commit | 7e67c40870e93e55e32071c7172d2c5966416b85 (patch) | |
tree | cde23570e7f6028f7584c289fbc6c5741a8f3bca /generic/tclIndexObj.c | |
parent | 581e26a546dc69ff8ee105eb4aaf18a18cd20407 (diff) | |
download | tcl-7e67c40870e93e55e32071c7172d2c5966416b85.zip tcl-7e67c40870e93e55e32071c7172d2c5966416b85.tar.gz tcl-7e67c40870e93e55e32071c7172d2c5966416b85.tar.bz2 |
* generic/tclIndexObj.c (Tcl_GetIndexFromObjStruct): It seems
* tests/indexObj.test: there are extensions that rely on the prior
* doc/GetIndex.3: behavior that the empty string cannot succeed
as a unique prefix matcher, so I'm restoring Donal Fellow's solution.
Added mention of this detail to the documentation. [Bug 1464039]
FossilOrigin-Name: aac13e1a469e70a6d61c82fc810918c31c129d9d
Diffstat (limited to 'generic/tclIndexObj.c')
-rw-r--r-- | generic/tclIndexObj.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclIndexObj.c b/generic/tclIndexObj.c index f22e7d4..02f8491 100644 --- a/generic/tclIndexObj.c +++ b/generic/tclIndexObj.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: tclIndexObj.c,v 1.16.2.4 2006/04/05 15:17:05 dgp Exp $ + * RCS: @(#) $Id: tclIndexObj.c,v 1.16.2.5 2006/04/06 18:57:24 dgp Exp $ */ #include "tclInt.h" @@ -229,7 +229,7 @@ Tcl_GetIndexFromObjStruct(interp, objPtr, tablePtr, offset, msg, flags, /* * Check if we were instructed to disallow abbreviations. */ - if ((flags & TCL_EXACT) || (numAbbrev != 1)) { + if ((flags & TCL_EXACT) || (key[0] == '\0') || (numAbbrev != 1)) { goto error; } |