diff options
author | dgp <dgp@users.sourceforge.net> | 2006-04-06 18:57:12 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2006-04-06 18:57:12 (GMT) |
commit | 710445dbed83ad9c1926d84500d59719893a739d (patch) | |
tree | cde23570e7f6028f7584c289fbc6c5741a8f3bca /generic/tclIndexObj.c | |
parent | 5015d22ee0b8292bcbc90e93a922fa092b52b0c1 (diff) | |
download | tcl-710445dbed83ad9c1926d84500d59719893a739d.zip tcl-710445dbed83ad9c1926d84500d59719893a739d.tar.gz tcl-710445dbed83ad9c1926d84500d59719893a739d.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]
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; } |