aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2016-11-07 13:43:15 +0100
committerWladimir J. van der Laan <[email protected]>2016-11-07 13:44:00 +0100
commit0b2322b144a02f933d8806cf7b8a1e4676471711 (patch)
tree11b09deda7f5f7a047e1370b1027243c31f202d2 /src
parentMerge #8976: libconsensus: Add input validation of flags (diff)
parentDo not shadow local variable (diff)
downloaddiscoin-0b2322b144a02f933d8806cf7b8a1e4676471711.tar.xz
discoin-0b2322b144a02f933d8806cf7b8a1e4676471711.zip
Merge #8981: Wshadow: Do not shadow argument with a local variable
ff6639b Do not shadow local variable (Pavel Janík)
Diffstat (limited to 'src')
-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 b638810e9..c5feb4789 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");