genconf: a menu confnode is always enabled
authorOlivier Matz <zer0@droids-corp.org>
Fri, 24 Dec 2010 12:16:02 +0000 (13:16 +0100)
committerOlivier Matz <zer0@droids-corp.org>
Sun, 2 Jan 2011 20:53:15 +0000 (21:53 +0100)
Signed-off-by: Olivier Matz <zer0@droids-corp.org>
src/genconf/confnode_menu.c

index b6a7c97..63bd6c5 100644 (file)
@@ -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;
 }