mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-24 00:20:01 +00:00
fix "may be used uninitialized in this function" warning
This commit is contained in:
parent
1842471eb1
commit
bbf6f2f451
@ -184,7 +184,11 @@ static bool init_tcp_socket(netplay_t *netplay, void *direct_host,
|
||||
while (tmp_info)
|
||||
{
|
||||
struct sockaddr_storage sad;
|
||||
int fd = init_tcp_connection(
|
||||
int fd;
|
||||
|
||||
memset(&sad, 0, sizeof(sad));
|
||||
|
||||
fd = init_tcp_connection(
|
||||
tmp_info,
|
||||
direct_host || server,
|
||||
(struct sockaddr*)&sad,
|
||||
|
Loading…
Reference in New Issue
Block a user