refactor: Avoid &foo[0] on C-Style arrays

This is confusing at best when parts of a class use the
redundant operators and other parts do not.
This commit is contained in:
MarcoFalke
2021-04-30 19:52:00 +02:00
parent face961109
commit faece47c47
5 changed files with 6 additions and 6 deletions

View File

@@ -293,7 +293,7 @@ void CExtPubKey::Decode(const unsigned char code[BIP32_EXTKEY_SIZE]) {
bool CExtPubKey::Derive(CExtPubKey &out, unsigned int _nChild) const {
out.nDepth = nDepth + 1;
CKeyID id = pubkey.GetID();
memcpy(&out.vchFingerprint[0], &id, 4);
memcpy(out.vchFingerprint, &id, 4);
out.nChild = _nChild;
return pubkey.Derive(out.pubkey, out.chaincode, _nChild, chaincode);
}