summaryrefslogtreecommitdiffstats
path: root/common/menu.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2010-08-21 17:00:20 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2010-08-30 20:57:20 +0200
commit86086c5faafb8ac8d00b4edbbf51de5fbe03b6b9 (patch)
tree9950b8b9200d0426f760d28d6e41f89246735368 /common/menu.c
parent6ce1c664deedc932093d2750c37f509b067bf551 (diff)
downloadbarebox-86086c5faafb8ac8d00b4edbbf51de5fbe03b6b9.tar.gz
menu: initialize entries list in menu_alloc
Otherwise menu_free fails when menu_add failed. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/menu.c')
-rw-r--r--common/menu.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/common/menu.c b/common/menu.c
index b201644..9c40365 100644
--- a/common/menu.c
+++ b/common/menu.c
@@ -68,10 +68,6 @@ int menu_add(struct menu *m)
list_add_tail(&m->list, &menus.list);
- m->nb_entries = 0;
-
- INIT_LIST_HEAD(&m->entries.list);
-
return 0;
}