diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2012-04-23 19:39:22 +0800 |
---|---|---|
committer | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2012-04-23 19:51:06 +0800 |
commit | b108afa01ac0ceb72db750fefd32a67c0247c9ca (patch) | |
tree | 73c05c7e68994b687715e4b9d02433ce8d7bbb22 /include | |
parent | 9851c9cc87a3e2d866743bd413858550c77d7836 (diff) | |
download | barebox-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>
Diffstat (limited to 'include')
-rw-r--r-- | include/menu.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/menu.h b/include/menu.h index 136fe61acd..74abcfb077 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; } |