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-25 18:37:43 +0800 |
commit | 9ccc05d2beeb11aa19e6d6ffd1cf287382fd13a7 (patch) | |
tree | cd684cfe3251f0cd20cc0ffdcc25c2592efce542 | |
parent | eb7667b68167897832de9e8ac0039cc8f6de7b7d (diff) | |
download | barebox-9ccc05d2beeb11aa19e6d6ffd1cf287382fd13a7.tar.gz barebox-9ccc05d2beeb11aa19e6d6ffd1cf287382fd13a7.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.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/menu.h b/include/menu.h index 6e7b555263..0a93418643 100644 --- a/include/menu.h +++ b/include/menu.h @@ -76,6 +76,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; } |