Fix 'pointer to local outside scope'

This commit is contained in:
twinaphex 2017-09-18 16:35:31 +02:00
parent c90307c585
commit 60c7f8e35f

View File

@ -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)