commit 3dac143e8ea88ec7b3a48c38f0fe21fd917b1654
parent 8b3a01bfe49ec6870a8293c174db2f699976ec4b
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Tue, 22 Nov 2016 16:15:31 +0100
Fix a bug in the parsing of the anchor node
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/parser/solstice_parser.c b/src/parser/solstice_parser.c
@@ -2045,7 +2045,7 @@ parse_anchor
res_T res = RES_OK;
ASSERT(parser && anchor && out_isolanchor);
- if(anchor->type == YAML_MAPPING_NODE) {
+ if(anchor->type != YAML_MAPPING_NODE) {
log_err(parser, anchor, "expect an anchor definition.\n");
res = RES_BAD_ARG;
goto error;