diff options
| author | Pavel Janík <[email protected]> | 2016-10-20 12:31:05 +0200 |
|---|---|---|
| committer | Pavel Janík <[email protected]> | 2016-10-20 12:31:05 +0200 |
| commit | ff6639b0f5484b392546752477d3de8c9e66dae4 (patch) | |
| tree | 1acbdba6124a14afa27b8862b46e4701c2b0d88d /src/wallet/rpcdump.cpp | |
| parent | Merge #7551: Add importmulti RPC call (diff) | |
| download | discoin-ff6639b0f5484b392546752477d3de8c9e66dae4.tar.xz discoin-ff6639b0f5484b392546752477d3de8c9e66dae4.zip | |
Do not shadow local variable
Diffstat (limited to 'src/wallet/rpcdump.cpp')
| -rw-r--r-- | src/wallet/rpcdump.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet/rpcdump.cpp b/src/wallet/rpcdump.cpp index 7b16b4adf..a3dd8b69b 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"); |