summaryrefslogtreecommitdiffstats
path: root/generic/tclIndexObj.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2012-11-22 08:49:46 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2012-11-22 08:49:46 (GMT)
commit8f22bd9be0100ebb6b03b9e4b1e0f79f2fd9e4d9 (patch)
treeebc368529e7e723503b3b16c7cb0fa94eaee2906 /generic/tclIndexObj.c
parentdb0645ad80beaf7a6138acf677e525b2abe0fe70 (diff)
parent5d659010d25c3d50db15f9fd42badfe8ebcc8265 (diff)
downloadtcl-8f22bd9be0100ebb6b03b9e4b1e0f79f2fd9e4d9.zip
tcl-8f22bd9be0100ebb6b03b9e4b1e0f79f2fd9e4d9.tar.gz
tcl-8f22bd9be0100ebb6b03b9e4b1e0f79f2fd9e4d9.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 731d759..cb345e2 100644
--- a/generic/tclIndexObj.c
+++ b/generic/tclIndexObj.c
@@ -302,10 +302,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;
}