git.droids-corp.org
/
libcmdline.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d45ee7a
)
genconf: a menu confnode is always enabled
author
Olivier Matz
<zer0@droids-corp.org>
Fri, 24 Dec 2010 12:16:02 +0000
(13:16 +0100)
committer
Olivier 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
patch
|
blob
|
history
diff --git
a/src/genconf/confnode_menu.c
b/src/genconf/confnode_menu.c
index
b6a7c97
..
63bd6c5
100644
(file)
--- 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;
}