From b7447b1dfcff3b59895ff50b02d3b7e435030ca2 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 1 May 2016 20:54:30 +0200 Subject: [PATCH] Cleanup --- netplay/netplay.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/netplay/netplay.c b/netplay/netplay.c index b7dc3f33e1..8de27d093b 100644 --- a/netplay/netplay.c +++ b/netplay/netplay.c @@ -706,9 +706,8 @@ static bool init_tcp_socket(netplay_t *netplay, const char *server, char port_buf[16] = {0}; bool ret = false; const struct addrinfo *tmp_info = NULL; - struct addrinfo hints, *res = NULL; - - memset(&hints, 0, sizeof(hints)); + struct addrinfo *res = NULL; + struct addrinfo hints = {0}; #if defined(_WIN32) || defined(HAVE_SOCKET_LEGACY) hints.ai_family = AF_INET;