aboutsummaryrefslogtreecommitdiff
path: root/src/wallet
diff options
context:
space:
mode:
authorPavel Janík <Pavel@Janik.cz>2016-10-20 12:31:05 +0200
committerPavel Janík <Pavel@Janik.cz>2016-10-20 12:31:05 +0200
commitff6639b0f5484b392546752477d3de8c9e66dae4 (patch)
tree1acbdba6124a14afa27b8862b46e4701c2b0d88d /src/wallet
parentf2d705629b510e2a5b25c8ecac1898fed13a16a2 (diff)
downloadbitcoin-ff6639b0f5484b392546752477d3de8c9e66dae4.tar.xz
Do not shadow local variable
Diffstat (limited to 'src/wallet')
-rw-r--r--src/wallet/rpcdump.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet/rpcdump.cpp b/src/wallet/rpcdump.cpp
index 7b16b4adfb..a3dd8b69b6 100644
--- a/src/wallet/rpcdump.cpp
+++ b/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");
}
- std::vector<unsigned char> data(ParseHex(strPubKey));
- CPubKey pubKey(data.begin(), data.end());
+ std::vector<unsigned char> vData(ParseHex(strPubKey));
+ CPubKey pubKey(vData.begin(), vData.end());
if (!pubKey.IsFullyValid()) {
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, "Pubkey is not a valid public key");