Skip to content

Commit 0b2322b

Browse files
committed
Merge #8981: Wshadow: Do not shadow argument with a local variable
ff6639b Do not shadow local variable (Pavel Janík)
2 parents 8c6218a + ff6639b commit 0b2322b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/wallet/rpcdump.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -798,8 +798,8 @@ UniValue processImport(const UniValue& data) {
798798
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, "Pubkey must be a hex string");
799799
}
800800

801-
std::vector<unsigned char> data(ParseHex(strPubKey));
802-
CPubKey pubKey(data.begin(), data.end());
801+
std::vector<unsigned char> vData(ParseHex(strPubKey));
802+
CPubKey pubKey(vData.begin(), vData.end());
803803

804804
if (!pubKey.IsFullyValid()) {
805805
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, "Pubkey is not a valid public key");

0 commit comments

Comments
 (0)