From 27fcfd823aa60236239d8fec9df8d040385c3d4e Mon Sep 17 00:00:00 2001 From: kervala Date: Sun, 8 May 2016 13:31:54 +0200 Subject: [PATCH] Changed: Minor changes --- code/ryzom/client/src/login.cpp | 3 ++- code/ryzom/common/src/game_share/http_client.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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];