Fix uninitialised structure fields.

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2635 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
Meep-Eep
2006-12-28 16:11:34 +00:00
parent 0a1e758445
commit a3f7a022bb
+3
View File
@@ -117,6 +117,7 @@ NetConnection_serverGo(NetConnection *conn) {
NetConnection_setState(conn, NetState_connecting); NetConnection_setState(conn, NetState_connecting);
memset (&listenFlags, 0, sizeof listenFlags);
listenFlags.familyDemand = listenFlags.familyDemand =
#if NETPLAY == NETPLAY_IPV4 #if NETPLAY == NETPLAY_IPV4
PF_inet; PF_inet;
@@ -124,6 +125,7 @@ NetConnection_serverGo(NetConnection *conn) {
PF_unspec; PF_unspec;
#endif #endif
listenFlags.familyPrefer = PF_unspec; listenFlags.familyPrefer = PF_unspec;
listenFlags.backlog = NETPLAY_LISTEN_BACKLOG;
result = listenPort(conn->options->port, IPProto_tcp, &listenFlags, result = listenPort(conn->options->port, IPProto_tcp, &listenFlags,
NetConnection_connectedServerCallback, NetConnection_connectedServerCallback,
@@ -142,6 +144,7 @@ NetConnection_clientGo(NetConnection *conn) {
NetConnection_setState(conn, NetState_connecting); NetConnection_setState(conn, NetState_connecting);
memset (&connectFlags, 0, sizeof connectFlags);
connectFlags.familyDemand = connectFlags.familyDemand =
#if NETPLAY == NETPLAY_IPV4 #if NETPLAY == NETPLAY_IPV4
PF_inet; PF_inet;