Remove useless string initialization.

This commit is contained in:
Alin Rus
2018-01-14 18:15:31 +01:00
parent f4f4f51f1a
commit 19ac86e206
5 changed files with 7 additions and 7 deletions

View File

@@ -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();