Prevent crash when we select 'Open Archive' and we have no

installed cores and no core info files
This commit is contained in:
twinaphex 2016-12-24 03:33:31 +01:00
parent c27038d9bd
commit cc282e4bf6

View File

@ -653,8 +653,7 @@ static int general_push(menu_displaylist_info_t *info,
switch (id)
{
case PUSH_ARCHIVE_OPEN_DETECT_CORE:
if (!string_is_empty(list->all_ext))
if (list && !string_is_empty(list->all_ext))
strlcpy(info->exts, list->all_ext, sizeof(info->exts));
else if (system_menu->valid_extensions)
{