Skip to content

Commit

Permalink
Promote nodes set with --set to sequence nodes as needed.
Browse files Browse the repository at this point in the history
A node isn't known to be a sequence node until the YAML is parsed.
If a node sequence node was set on the command line, promote
it to a sequence node when it is discovered by YAML to be
a sequence node.

Fixes comment #18 in issue 921.
  • Loading branch information
Jason Ish committed Feb 10, 2014
1 parent 18edec8 commit 33e4cc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/conf-yaml-loader.c
Expand Up @@ -340,8 +340,8 @@ ConfYamlParse(yaml_parser_t *parser, ConfNode *parent, int inseq)
SCFree(seq_node);
return -1;
}
seq_node->is_seq = 1;
}
seq_node->is_seq = 1;
TAILQ_INSERT_TAIL(&node->head, seq_node, next);
if (ConfYamlParse(parser, seq_node, 0) != 0)
goto fail;
Expand Down

0 comments on commit 33e4cc0

Please sign in to comment.