summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-04-03 15:37:00 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-04-03 15:37:00 +0200
commit00ea7d12c1708929fe8aedec3914221fb2190553 (patch)
tree278bfd0642acdc80a981f731bc93763f85c084bc
parentcSocket.cpp should also compile on Mac now (I hope) (diff)
downloadcuberite-00ea7d12c1708929fe8aedec3914221fb2190553.tar
cuberite-00ea7d12c1708929fe8aedec3914221fb2190553.tar.gz
cuberite-00ea7d12c1708929fe8aedec3914221fb2190553.tar.bz2
cuberite-00ea7d12c1708929fe8aedec3914221fb2190553.tar.lz
cuberite-00ea7d12c1708929fe8aedec3914221fb2190553.tar.xz
cuberite-00ea7d12c1708929fe8aedec3914221fb2190553.tar.zst
cuberite-00ea7d12c1708929fe8aedec3914221fb2190553.zip
Diffstat (limited to '')
-rw-r--r--source/cSocket.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/cSocket.cpp b/source/cSocket.cpp
index e42033578..09291f2a9 100644
--- a/source/cSocket.cpp
+++ b/source/cSocket.cpp
@@ -211,6 +211,7 @@ unsigned long cSocket::INTERNET_ADDRESS_LOCALHOST(void)
int cSocket::Bind(SockAddr_In& a_Address)
{
sockaddr_in local;
+ memset(&local, 0, sizeof(local));
local.sin_family = a_Address.Family;
local.sin_addr.s_addr = a_Address.Address;