0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00
This commit is contained in:
dwight 2011-07-01 11:25:48 -04:00
parent a55f19fc47
commit b454e1563f

View File

@ -99,9 +99,9 @@ namespace mongo {
reserved = 0;
magic[0] = magic[1] = magic[2] = magic[3] = '\n';
Checksum c;
c.gen(begin, (unsigned) len);
memcpy(hash, c.bytes, sizeof(hash));
Checksum c;
c.gen(begin, (unsigned) len);
memcpy(hash, c.bytes, sizeof(hash));
}
bool JSectFooter::checkHash(const void* begin, int len) const {