diff options
author | Alin Rus <alin@fsck.ro> | 2018-01-14 18:15:31 +0100 |
---|---|---|
committer | Alin Rus <alin@fsck.ro> | 2018-02-13 20:47:55 +0100 |
commit | 19ac86e2063432fca1f21fd3ef9770e7bde5d0ff (patch) | |
tree | 3ac58066929e7945cc23ff720b7cdcce09f29912 /src/netbase.cpp | |
parent | f4f4f51f1a940a239c9b406fe3b362bf3303cbce (diff) |
Remove useless string initialization.
Diffstat (limited to 'src/netbase.cpp')
-rw-r--r-- | src/netbase.cpp | 2 |
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; |