mirror of
https://github.com/libretro/RetroArch
synced 2025-04-16 17:43:02 +00:00
Prevent 'explicit null dereferenced' warning
This commit is contained in:
parent
7b04375c9b
commit
307361e12c
@ -260,8 +260,13 @@ struct string_list *string_list_new_special(enum string_list_type type,
|
|||||||
|
|
||||||
for (i = 0; i < *list_size; i++)
|
for (i = 0; i < *list_size; i++)
|
||||||
{
|
{
|
||||||
|
const char *opt = NULL;
|
||||||
const core_info_t *info = (const core_info_t*)&core_info[i];
|
const core_info_t *info = (const core_info_t*)&core_info[i];
|
||||||
const char *opt = info->display_name;
|
|
||||||
|
if (!info)
|
||||||
|
goto error;
|
||||||
|
|
||||||
|
opt = info->display_name;
|
||||||
|
|
||||||
if (!opt)
|
if (!opt)
|
||||||
goto error;
|
goto error;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user