mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-24 08:30:16 +00:00
Silence some static code analysis warnings
This commit is contained in:
parent
cadc4f56a3
commit
7cf1793801
@ -1024,7 +1024,7 @@ static void command_event_init_controllers(void)
|
||||
/* Ideally these checks shouldn't be required but if we always
|
||||
* call core_set_controller_port_device input won't work on
|
||||
* cores that don't set port information properly */
|
||||
if (info->ports.size != 0 && i < info->ports.size)
|
||||
if (info && info->ports.size != 0 && i < info->ports.size)
|
||||
set_controller = true;
|
||||
break;
|
||||
default:
|
||||
|
@ -179,8 +179,9 @@ static bool append_plugs(retro_dsp_filter_t *dsp, struct string_list *list)
|
||||
{
|
||||
unsigned i;
|
||||
dspfilter_simd_mask_t mask = cpu_features_get();
|
||||
unsigned list_size = list ? list->size : 0;
|
||||
|
||||
for (i = 0; i < list->size; i++)
|
||||
for (i = 0; i < list_size; i++)
|
||||
{
|
||||
dspfilter_get_implementation_t cb;
|
||||
const struct dspfilter_implementation *impl = NULL;
|
||||
|
@ -131,7 +131,8 @@ static bool resampler_append_plugs(void **re,
|
||||
{
|
||||
resampler_simd_mask_t mask = (resampler_simd_mask_t)cpu_features_get();
|
||||
|
||||
*re = (*backend)->init(&resampler_config, bw_ratio, mask);
|
||||
if (*backend)
|
||||
*re = (*backend)->init(&resampler_config, bw_ratio, mask);
|
||||
|
||||
if (!*re)
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user