aboutsummaryrefslogtreecommitdiff
path: root/src/pubkey.cpp
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2021-04-30 19:52:00 +0200
committerMarcoFalke <falke.marco@gmail.com>2021-05-04 06:55:30 +0200
commitfaece47c4706783e0460ed977390a44630b2d44c (patch)
treeec86896e9ef5d37816a454a72fa5c98246c0cf99 /src/pubkey.cpp
parentface9611093377e8502d91f2ff56f9319a56357c (diff)
downloadbitcoin-faece47c4706783e0460ed977390a44630b2d44c.tar.xz
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.cpp2
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);
}