From: Olivier Matz Date: Fri, 24 Dec 2010 12:16:02 +0000 (+0100) Subject: genconf: a menu confnode is always enabled X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=d8ba54ae8b6a95cee8c1766fa9871d6bdc83c8a4;p=libcmdline.git genconf: a menu confnode is always enabled Signed-off-by: Olivier Matz --- diff --git a/src/genconf/confnode_menu.c b/src/genconf/confnode_menu.c index b6a7c97..63bd6c5 100644 --- a/src/genconf/confnode_menu.c +++ b/src/genconf/confnode_menu.c @@ -78,6 +78,7 @@ static int confnode_menu_new(struct confnode *n, const struct line *line) snprintf(n->name, sizeof(n->name), "%s", tok->str); n->ops = &confnode_menu.ops; n->flags = CONFNODE_F_IS_DIR; + snprintf(n->default_value, sizeof(n->default_value), "y"); return 0; }