summaryrefslogtreecommitdiffstats
path: root/socket_bind.c
diff options
context:
space:
mode:
Diffstat (limited to 'socket_bind.c')
-rw-r--r--socket_bind.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/socket_bind.c b/socket_bind.c
index 5a6a0a0..b31f673 100644
--- a/socket_bind.c
+++ b/socket_bind.c
@@ -8,7 +8,7 @@
int socket_bind4(int s,char ip[4],u16 port)
{
struct sockaddr_in sa;
-
+
memset(&sa,0,sizeof sa);
sa.sin_family = AF_INET;
u16_pack_big((char *) &sa.sin_port,port);