9
0
Fork 0

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:
Jean-Christophe PLAGNIOL-VILLARD 2012-04-23 19:39:22 +08:00
parent 9851c9cc87
commit b108afa01a
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}