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>
This commit is contained in:
parent
9851c9cc87
commit
b108afa01a
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue