Skip to content

Commit 86e3267

Browse files
committed
temp
1 parent 9a289ac commit 86e3267

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/parser_json.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1878,7 +1878,7 @@ lyd_parse_json_init(const struct ly_ctx *ctx, const struct lysc_node *schema, st
18781878

18791879
/**
18801880
* @brief Parse a bare JSON value.
1881-
*
1881+
*
18821882
* @param[in] ctx libyang context.
18831883
* @param[in] lydctx Data parser context.
18841884
* @param[in,out] status Current status of the data parser context.
@@ -1961,6 +1961,8 @@ lyd_parse_json_bare_value(const struct ly_ctx *ctx, struct lyd_json_ctx *lydctx,
19611961
break;
19621962
}
19631963

1964+
goto cleanup;
1965+
19641966
representation_error:
19651967
LOGVAL(ctx, LYVE_SYNTAX_JSON, "Expecting JSON %s but %s \"%s\" is represented in input data as %s.",
19661968
expected, lys_nodetype2str(schema->nodetype), schema->name, lyjson_token2str(*status));

0 commit comments

Comments
 (0)