8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 02:03:04 +01:00

Fixed the regression I introduced some time ago

This commit is contained in:
Dmitry Yemanov 2018-10-30 13:26:37 +03:00
parent 98f4d499a1
commit 643c6d35ec

View File

@ -475,6 +475,8 @@ ULONG HashJoin::computeHash(thread_db* tdbb,
const SubStream& sub,
UCHAR* keyBuffer) const
{
memset(keyBuffer, 0, sub.totalKeyLength);
UCHAR* keyPtr = keyBuffer;
for (FB_SIZE_T i = 0; i < sub.keys->getCount(); i++)
@ -509,10 +511,6 @@ ULONG HashJoin::computeHash(thread_db* tdbb,
memcpy(keyPtr, desc->dsc_address, keyLength);
}
}
else
{
memset(keyPtr, 0, keyLength);
}
keyPtr += keyLength;
}