[PATCH 2/2] menu: fix menu alloc init
Jean-Christophe PLAGNIOL-VILLARD
plagnioj at jcrosoft.com
Mon Apr 23 07:24:51 EDT 2012
The auto_select is supposed to be set to -1.
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com>
---
include/menu.h | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/include/menu.h b/include/menu.h
index 136fe61..74abcfb 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;
}
--
1.7.9.1
More information about the barebox
mailing list