mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-20 18:00:57 +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++)
|
||||
{
|
||||
const char *opt = NULL;
|
||||
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)
|
||||
goto error;
|
||||
|
Loading…
Reference in New Issue
Block a user