Initialize listen_addr et al

This commit is contained in:
Eyal Sawady 2020-11-09 16:43:47 -05:00
parent ca1166febf
commit 7f9142c472
No known key found for this signature in database
GPG Key ID: 604D3459E53A9952
1 changed files with 2 additions and 2 deletions

4
main.c
View File

@ -1385,8 +1385,8 @@ main(int argc, char *argv[])
int listen_fd, listen6_fd, new_fd, i;
socklen_t client_size;
struct sockaddr_in listen_addr, client_addr;
struct sockaddr_in6 listen6_addr;
struct sockaddr_in listen_addr = {0}, client_addr = {0};
struct sockaddr_in6 listen6_addr = {0};
for (i = 0; i < NUM_PLAYERS; i++) {
players[i].fd = -1;