aboutsummaryrefslogtreecommitdiff
path: root/src/netbase.cpp
diff options
context:
space:
mode:
authorAlin Rus <alin@fsck.ro>2018-01-14 18:15:31 +0100
committerAlin Rus <alin@fsck.ro>2018-02-13 20:47:55 +0100
commit19ac86e2063432fca1f21fd3ef9770e7bde5d0ff (patch)
tree3ac58066929e7945cc23ff720b7cdcce09f29912 /src/netbase.cpp
parentf4f4f51f1a940a239c9b406fe3b362bf3303cbce (diff)
Remove useless string initialization.
Diffstat (limited to 'src/netbase.cpp')
-rw-r--r--src/netbase.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/netbase.cpp b/src/netbase.cpp
index 5be3fe34f8..3ea3141d5e 100644
--- a/src/netbase.cpp
+++ b/src/netbase.cpp
@@ -139,7 +139,7 @@ bool Lookup(const char *pszName, std::vector<CService>& vAddr, int portDefault,
if (pszName[0] == 0)
return false;
int port = portDefault;
- std::string hostname = "";
+ std::string hostname;
SplitHostPort(std::string(pszName), port, hostname);
std::vector<CNetAddr> vIP;