genconf: "comment" nodes don't have name, add the flag
[libcmdline.git] / 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;
 }