aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/menu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/menu.c b/common/menu.c
index 5fb2ffb..b577d80 100644
--- a/common/menu.c
+++ b/common/menu.c
@@ -271,7 +271,7 @@ int menu_get_choice(struct menu *m, void **choice)
if (!m || !choice)
return -EINVAL;
- if (!m->prompt || m->item_cnt == 1)
+ if (!m->prompt)
return menu_default_choice(m, choice);
return menu_interactive_choice(m, choice);