Changed: Minor changes

This commit is contained in:
kervala 2016-05-08 13:31:54 +02:00
parent c5132f5b9e
commit d4cb7e9489
2 changed files with 3 additions and 2 deletions

View file

@ -2938,7 +2938,8 @@ string checkLogin(const string &login, const string &password, const string &cli
// *************************************************************************** // ***************************************************************************
string selectShard(uint32 shardId, string &cookie, string &addr) string selectShard(uint32 shardId, string &cookie, string &addr)
{ {
cookie = addr = ""; cookie.clear();
addr.clear();
if(!HttpClient.connectToLogin()) return "Can't connect (error code 7)"; if(!HttpClient.connectToLogin()) return "Can't connect (error code 7)";

View file

@ -152,7 +152,7 @@ bool CHttpClient::receive(string &res, bool verbose)
nlassert(_Sock.connected()); nlassert(_Sock.connected());
uint32 size; uint32 size;
res = ""; res.clear();
uint8 buf[1024]; uint8 buf[1024];