diff --git a/code/ryzom/client/src/login.cpp b/code/ryzom/client/src/login.cpp index 081d31a9d..b8ac576d0 100644 --- a/code/ryzom/client/src/login.cpp +++ b/code/ryzom/client/src/login.cpp @@ -2938,7 +2938,8 @@ string checkLogin(const string &login, const string &password, const string &cli // *************************************************************************** string selectShard(uint32 shardId, string &cookie, string &addr) { - cookie = addr = ""; + cookie.clear(); + addr.clear(); if(!HttpClient.connectToLogin()) return "Can't connect (error code 7)"; diff --git a/code/ryzom/common/src/game_share/http_client.cpp b/code/ryzom/common/src/game_share/http_client.cpp index d9add4692..0c77fcb1a 100644 --- a/code/ryzom/common/src/game_share/http_client.cpp +++ b/code/ryzom/common/src/game_share/http_client.cpp @@ -152,7 +152,7 @@ bool CHttpClient::receive(string &res, bool verbose) nlassert(_Sock.connected()); uint32 size; - res = ""; + res.clear(); uint8 buf[1024];