Skip to content

Commit

Permalink
merge 8.6
Browse files Browse the repository at this point in the history
  • Loading branch information
sebres committed Apr 12, 2024
2 parents d20f13f + 760a1ef commit 16f110e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions generic/tclHash.c
Original file line number Diff line number Diff line change
Expand Up @@ -320,13 +320,16 @@ CreateHashEntry(
return hPtr;
}
}
} else { /* no direct compare */
} else { /* no direct compare - compare key addresses only */
for (hPtr = tablePtr->buckets[index]; hPtr != NULL;
hPtr = hPtr->nextPtr) {
if (hash != PTR2UINT(hPtr->hash)) {
continue;
}
if (compareKeysProc((void *) key, hPtr)) {
/* if needle pointer equals content pointer or values equal */
if ((key == hPtr->key.string)
|| compareKeysProc((void *) key, hPtr)
) {
if (newPtr) {
*newPtr = 0;
}
Expand Down

0 comments on commit 16f110e

Please sign in to comment.