summaryrefslogtreecommitdiffstats
path: root/generic/tclIndexObj.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2006-04-06 18:57:57 (GMT)
committerdgp <dgp@users.sourceforge.net>2006-04-06 18:57:57 (GMT)
commit66eb0f67f7cc2d152c918f5ccfe94cd89a7581fe (patch)
treea534618cc4c2f2aaf245bbb836151adc72a04975 /generic/tclIndexObj.c
parent5236fc67c64ed64fa5b75bc48a4ef5dd2ae44e0f (diff)
downloadtcl-66eb0f67f7cc2d152c918f5ccfe94cd89a7581fe.zip
tcl-66eb0f67f7cc2d152c918f5ccfe94cd89a7581fe.tar.gz
tcl-66eb0f67f7cc2d152c918f5ccfe94cd89a7581fe.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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclIndexObj.c b/generic/tclIndexObj.c
index be60517..df658dd 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.30 2006/04/05 15:17:39 dgp Exp $
+ * RCS: @(#) $Id: tclIndexObj.c,v 1.31 2006/04/06 18:57:58 dgp Exp $
*/
#include "tclInt.h"
@@ -226,7 +226,7 @@ Tcl_GetIndexFromObjStruct(
* 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;
}