Browse Source

Do not shadow local variable

0.14
Pavel Janík 8 years ago
parent
commit
ff6639b0f5
  1. 4
      src/wallet/rpcdump.cpp

4
src/wallet/rpcdump.cpp

@ -798,8 +798,8 @@ UniValue processImport(const UniValue& data) {
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, "Pubkey must be a hex string"); throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, "Pubkey must be a hex string");
} }
std::vector<unsigned char> data(ParseHex(strPubKey)); std::vector<unsigned char> vData(ParseHex(strPubKey));
CPubKey pubKey(data.begin(), data.end()); CPubKey pubKey(vData.begin(), vData.end());
if (!pubKey.IsFullyValid()) { if (!pubKey.IsFullyValid()) {
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, "Pubkey is not a valid public key"); throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, "Pubkey is not a valid public key");

Loading…
Cancel
Save