summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2012-04-23 19:39:22 +0800
committerJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2012-04-23 19:51:06 +0800
commitb108afa01ac0ceb72db750fefd32a67c0247c9ca (patch)
tree73c05c7e68994b687715e4b9d02433ce8d7bbb22
parent9851c9cc87a3e2d866743bd413858550c77d7836 (diff)
downloadbarebox-b108afa01ac0ceb72db750fefd32a67c0247c9ca.tar.gz
barebox-b108afa01ac0ceb72db750fefd32a67c0247c9ca.tar.xz
menu: fix menu alloc init
The auto_select is supposed to be set to -1. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
-rw-r--r--include/menu.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/menu.h b/include/menu.h
index 136fe61ac..74abcfb07 100644
--- a/include/menu.h
+++ b/include/menu.h
@@ -79,6 +79,7 @@ static inline struct menu* menu_alloc(void)
if (m) {
INIT_LIST_HEAD(&m->entries);
m->nb_entries = 0;
+ m->auto_select = -1;
}
return m;
}