mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 23:18:14 +01:00
Remove useless string initialization.
This commit is contained in:
@@ -279,7 +279,7 @@ UniValue importaddress(const JSONRPCRequest& request)
|
||||
);
|
||||
|
||||
|
||||
std::string strLabel = "";
|
||||
std::string strLabel;
|
||||
if (!request.params[1].isNull())
|
||||
strLabel = request.params[1].get_str();
|
||||
|
||||
@@ -452,7 +452,7 @@ UniValue importpubkey(const JSONRPCRequest& request)
|
||||
);
|
||||
|
||||
|
||||
std::string strLabel = "";
|
||||
std::string strLabel;
|
||||
if (!request.params[1].isNull())
|
||||
strLabel = request.params[1].get_str();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user