summaryrefslogtreecommitdiffstats
path: root/generic/tclIndexObj.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2012-11-22 08:47:37 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2012-11-22 08:47:37 (GMT)
commit5d659010d25c3d50db15f9fd42badfe8ebcc8265 (patch)
treefdf693839484bb74c4ea5b6b5b1e34f6658d50f4 /generic/tclIndexObj.c
parent70e9e19b64074fabd2d0ae5d1354807bc120f3da (diff)
parent8e1d78b43a4a07205cade3283d6414aa74467fbc (diff)
downloadtcl-5d659010d25c3d50db15f9fd42badfe8ebcc8265.zip
tcl-5d659010d25c3d50db15f9fd42badfe8ebcc8265.tar.gz
tcl-5d659010d25c3d50db15f9fd42badfe8ebcc8265.tar.bz2
Fix bug reported by Brian Griffin:
<p>[http://code.activestate.com/lists/tcl-core/12524/]
Diffstat (limited to 'generic/tclIndexObj.c')
-rw-r--r--generic/tclIndexObj.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/generic/tclIndexObj.c b/generic/tclIndexObj.c
index 2d87205..944fb8e 100644
--- a/generic/tclIndexObj.c
+++ b/generic/tclIndexObj.c
@@ -202,10 +202,6 @@ Tcl_GetIndexFromObjStruct(
entryPtr = NEXT_ENTRY(entryPtr, offset), idx++) {
for (p1 = key, p2 = *entryPtr; *p1 == *p2; p1++, p2++) {
if (*p1 == '\0') {
- if (p1 == key) {
- /* empty keys never match */
- continue;
- }
index = idx;
goto done;
}