yin parser CHANGE add support for presence element
diff --git a/src/parser_yin.c b/src/parser_yin.c
index 1fe4944..8ba957c 100644
--- a/src/parser_yin.c
+++ b/src/parser_yin.c
@@ -1163,7 +1163,6 @@
{
struct lysp_node *iter;
struct lysp_node_leaflist *llist;
- LY_ERR ret = LY_SUCCESS;
llist = calloc(1, sizeof *llist);
LY_CHECK_ERR_RET(!llist, LOGMEM(ctx->xml_ctx.ctx), LY_EMEM);
@@ -1530,6 +1529,8 @@
(const char **)subelem->dest, YIN_ARG_VALUE, Y_IDENTIF_ARG, exts);
break;
case YANG_PRESENCE:
+ ret = yin_parse_simple_element(ctx, attrs, data, kw, (const char **)subelem->dest, YIN_ARG_VALUE,
+ Y_STR_ARG, exts);
break;
case YANG_RANGE:
type = (struct lysp_type *)subelem->dest;