summaryrefslogtreecommitdiffstats
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)
commita6f5874dd6a97c06fc39c4d5fd429042d4facce8 (patch)
treeebc368529e7e723503b3b16c7cb0fa94eaee2906
parentce8b0d55e3f2faa869ba2727c5b6362ead7d5472 (diff)
parent888f7141151b5b085d0cdc0029121d67a06e7273 (diff)
downloadtcl-a6f5874dd6a97c06fc39c4d5fd429042d4facce8.zip
tcl-a6f5874dd6a97c06fc39c4d5fd429042d4facce8.tar.gz
tcl-a6f5874dd6a97c06fc39c4d5fd429042d4facce8.tar.bz2
Fix bug reported by Brian Griffin:
<p>[http://code.activestate.com/lists/tcl-core/12524/]
-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;
}