Skip to content

Commit

Permalink
Cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
inactive123 committed Nov 16, 2017
1 parent c0d8a2f commit 40bb1da
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions menu/cbs/menu_cbs_select.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ static int action_select_default(const char *path, const char *label, unsigned t
menu_entry_init(&entry);
menu_entry_get(&entry, 0, idx, NULL, false);

cbs = selection_buf ? (menu_file_list_cbs_t*)file_list_get_actiondata_at_offset(selection_buf, idx) : NULL;
if (selection_buf)
cbs = (menu_file_list_cbs_t*)
file_list_get_actiondata_at_offset(selection_buf, idx);

if (!cbs)
{
Expand Down Expand Up @@ -76,7 +78,7 @@ static int action_select_default(const char *path, const char *label, unsigned t
if (action == MENU_ACTION_NOOP)
{
if (cbs->action_ok)
action = MENU_ACTION_OK;
action = MENU_ACTION_OK;
else
{
if (cbs->action_start)
Expand Down

0 comments on commit 40bb1da

Please sign in to comment.