From b6012ec6061c373fabc0f3638bde2b455e04c7a1 Mon Sep 17 00:00:00 2001 From: Stan Date: Thu, 9 Sep 2021 18:00:17 +0000 Subject: [PATCH] Fix false positive; undefined variable in NetworkClient.cpp refs #6321 for further cleanups. Discussed with: @wraitii Differential Revision: https://code.wildfiregames.com/D4258 This was SVN commit r25908. --- source/network/NetClient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/network/NetClient.cpp b/source/network/NetClient.cpp index 68aef77952..b14e4eb7a9 100644 --- a/source/network/NetClient.cpp +++ b/source/network/NetClient.cpp @@ -258,7 +258,7 @@ bool CNetClient::TryToConnect(const CStr& hostJID, bool localNetwork) } CStr ip; - u16 port; + u16 port = 0; if (g_XmppClient && m_UseSTUN) { if (!StunClient::FindPublicIP(*enetClient, ip, port))