mirror of
https://github.com/libretro/RetroArch
synced 2025-04-11 00:44:20 +00:00
Cleanup
This commit is contained in:
parent
f1098d8f6a
commit
b7447b1dfc
@ -706,9 +706,8 @@ static bool init_tcp_socket(netplay_t *netplay, const char *server,
|
|||||||
char port_buf[16] = {0};
|
char port_buf[16] = {0};
|
||||||
bool ret = false;
|
bool ret = false;
|
||||||
const struct addrinfo *tmp_info = NULL;
|
const struct addrinfo *tmp_info = NULL;
|
||||||
struct addrinfo hints, *res = NULL;
|
struct addrinfo *res = NULL;
|
||||||
|
struct addrinfo hints = {0};
|
||||||
memset(&hints, 0, sizeof(hints));
|
|
||||||
|
|
||||||
#if defined(_WIN32) || defined(HAVE_SOCKET_LEGACY)
|
#if defined(_WIN32) || defined(HAVE_SOCKET_LEGACY)
|
||||||
hints.ai_family = AF_INET;
|
hints.ai_family = AF_INET;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user