X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=src%2Fnet.cpp;h=7255cab3f70c77010399fb998047db72841d9c15;hp=c69e83c0abc5e8403c215a125a0bf2f00f94f475;hb=cecf7a56ed5a5efd939b21c760c69da616306005;hpb=f1498f6725d36c0c70b6bea131c51d5824bcfde3 diff --git a/src/net.cpp b/src/net.cpp index c69e83c..7255cab 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -142,7 +142,7 @@ CAddress GetLocalAddress(const CNetAddr *paddrPeer) bool RecvLine(SOCKET hSocket, string& strLine) { - strLine = ""; + strLine.clear(); for ( ; ; ) { char c; @@ -1528,7 +1528,7 @@ void ThreadMessageHandler2(void* parg) bool BindListenPort(const CService &addrBind, string& strError) { - strError = ""; + strError.clear(); int nOne = 1; // Create socket for listening for incoming connections