diff --git a/src/openrct2/network/TcpSocket.cpp b/src/openrct2/network/TcpSocket.cpp index 4c00859902..c33b560918 100644 --- a/src/openrct2/network/TcpSocket.cpp +++ b/src/openrct2/network/TcpSocket.cpp @@ -449,7 +449,7 @@ private: hints.ai_flags = AI_PASSIVE; } - addrinfo * result; + addrinfo * result = nullptr; getaddrinfo(address, serviceName.c_str(), &hints, &result); if (result == nullptr) {