genconf: "comment" nodes don't have name, add the flag
authorOlivier Matz <zer0@droids-corp.org>
Sun, 8 May 2011 16:00:01 +0000 (18:00 +0200)
committerOlivier Matz <zer0@droids-corp.org>
Sun, 8 May 2011 16:00:01 +0000 (18:00 +0200)
Signed-off-by: Olivier Matz <zer0@droids-corp.org>
src/genconf/confnode_comment.c

index 36607cc..95eaccd 100644 (file)
@@ -76,7 +76,8 @@ static int confnode_comment_new(struct confnode *n, const struct line *line)
        snprintf(n->prompt, sizeof(n->prompt), "%s", tok->str);
        n->ops = &confnode_comment.ops;
        n->flags = CONFNODE_F_NO_SET_DEFAULT |
-               CONFNODE_F_NO_SET_PROMPT;
+               CONFNODE_F_NO_SET_PROMPT |
+               CONFNODE_F_NO_NAME;
        return 0;
 }