mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-23 07:59:42 +00:00
Merge pull request #14061 from Cthulhu-throwaway/netplay-buildfix
(Netplay) Buildfix for some "dumber" compilers
This commit is contained in:
commit
852b3f2071
@ -3380,7 +3380,7 @@ critical_failure:
|
||||
static struct netplay_connection *allocate_connection(netplay_t *netplay)
|
||||
{
|
||||
size_t i;
|
||||
struct netplay_connection *connection;
|
||||
struct netplay_connection *connection = NULL;
|
||||
|
||||
/* Look for an existing non-used connection first. */
|
||||
for (i = 0; i < netplay->connections_size; i++)
|
||||
@ -3391,7 +3391,9 @@ static struct netplay_connection *allocate_connection(netplay_t *netplay)
|
||||
break;
|
||||
}
|
||||
if (i < netplay->connections_size)
|
||||
{
|
||||
memset(connection, 0, sizeof(*connection));
|
||||
}
|
||||
else if (!netplay->connections_size)
|
||||
{
|
||||
netplay->connections =
|
||||
|
Loading…
Reference in New Issue
Block a user