diff options
author | MarcoFalke <falke.marco@gmail.com> | 2021-04-30 19:52:00 +0200 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2021-05-04 06:55:30 +0200 |
commit | faece47c4706783e0460ed977390a44630b2d44c (patch) | |
tree | ec86896e9ef5d37816a454a72fa5c98246c0cf99 /src/pubkey.cpp | |
parent | face9611093377e8502d91f2ff56f9319a56357c (diff) |
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.
Diffstat (limited to 'src/pubkey.cpp')
-rw-r--r-- | src/pubkey.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pubkey.cpp b/src/pubkey.cpp index fc1624af25..a89988cc90 100644 --- a/src/pubkey.cpp +++ b/src/pubkey.cpp @@ -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); } |