Silence warning 'rv might be uninitialized'
This commit is contained in:
parent
98ee9a753c
commit
74959de48e
1 changed files with 8 additions and 7 deletions
|
@ -435,15 +435,16 @@ bool netplay_discovery_driver_ctl(
|
||||||
|
|
||||||
switch (state)
|
switch (state)
|
||||||
{
|
{
|
||||||
case RARCH_NETPLAY_DISCOVERY_CTL_LAN_SEND_QUERY: {
|
case RARCH_NETPLAY_DISCOVERY_CTL_LAN_SEND_QUERY:
|
||||||
bool rv;
|
{
|
||||||
if (net_st->lan_ad_client_fd >= 0)
|
bool rv = false;
|
||||||
rv = netplay_lan_ad_client_query();
|
if (net_st->lan_ad_client_fd >= 0)
|
||||||
|
rv = netplay_lan_ad_client_query();
|
||||||
#if HAVE_NETPLAYDISCOVERY_NSNET
|
#if HAVE_NETPLAYDISCOVERY_NSNET
|
||||||
rv = true;
|
rv = true;
|
||||||
#endif
|
#endif
|
||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
|
|
||||||
case RARCH_NETPLAY_DISCOVERY_CTL_LAN_GET_RESPONSES:
|
case RARCH_NETPLAY_DISCOVERY_CTL_LAN_GET_RESPONSES:
|
||||||
return net_st->lan_ad_client_fd >= 0 &&
|
return net_st->lan_ad_client_fd >= 0 &&
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue