This commit is contained in:
twinaphex 2016-05-01 20:54:30 +02:00
parent f1098d8f6a
commit b7447b1dfc

View File

@ -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;