mirror of
https://github.com/libretro/RetroArch
synced 2025-02-27 09:41:14 +00:00
Fix 'pointer to local outside scope'
This commit is contained in:
parent
c90307c585
commit
60c7f8e35f
@ -128,6 +128,7 @@ int generic_action_ok_displaylist_push(const char *path,
|
||||
{
|
||||
menu_displaylist_info_t info;
|
||||
char tmp[PATH_MAX_LENGTH];
|
||||
char parent_dir[PATH_MAX_LENGTH];
|
||||
enum menu_displaylist_ctl_state dl_type = DISPLAYLIST_NONE;
|
||||
const char *menu_label = NULL;
|
||||
const char *menu_path = NULL;
|
||||
@ -474,9 +475,6 @@ int generic_action_ok_displaylist_push(const char *path,
|
||||
dl_type = DISPLAYLIST_GENERIC;
|
||||
break;
|
||||
case ACTION_OK_DL_PARENT_DIRECTORY_PUSH:
|
||||
{
|
||||
char parent_dir[PATH_MAX_LENGTH];
|
||||
|
||||
parent_dir[0] = '\0';
|
||||
|
||||
if (path && menu_path)
|
||||
@ -493,7 +491,6 @@ int generic_action_ok_displaylist_push(const char *path,
|
||||
info_path = parent_dir;
|
||||
info_label = menu_label;
|
||||
dl_type = DISPLAYLIST_GENERIC;
|
||||
}
|
||||
break;
|
||||
case ACTION_OK_DL_DIRECTORY_PUSH:
|
||||
if (path && menu_path)
|
||||
|
Loading…
x
Reference in New Issue
Block a user