From 0db449bf70966941453cfbb8ec05fd430a96dc12 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 24 Jul 2019 13:20:12 +0300 Subject: useless member NETLIBOPENCONNECTION::cbSize removed --- protocols/Discord/src/gateway.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'protocols/Discord') diff --git a/protocols/Discord/src/gateway.cpp b/protocols/Discord/src/gateway.cpp index cc48552b13..fc760cb980 100644 --- a/protocols/Discord/src/gateway.cpp +++ b/protocols/Discord/src/gateway.cpp @@ -140,8 +140,7 @@ bool CDiscordProto::GatewayThreadWorker() if (!mir_strncmp(m_szGateway, "wss://", 6)) m_szGateway.Delete(0, 6); - NETLIBOPENCONNECTION conn = { 0 }; - conn.cbSize = sizeof(conn); + NETLIBOPENCONNECTION conn = {}; conn.szHost = m_szGateway; conn.flags = NLOCF_V2 | NLOCF_SSL; conn.timeout = 5; -- cgit v1.2.3