commit | d68ba1bc99d0150a74aae8abd6a8298dd3b3e771 | [log] [tgz] |
---|---|---|
author | Radek Krejci <rkrejci@cesnet.cz> | Mon Nov 09 17:40:11 2020 +0100 |
committer | Radek Krejci <rkrejci@cesnet.cz> | Mon Nov 23 13:37:39 2020 +0100 |
tree | b9173b9ec4e701a5790e9108ee80f235cd91b97a | |
parent | ebdaed04a5a2128d88ed711f28e695869d998d57 [diff] |
constext BUGFIX incorrect node being created in ly_ctx_get_yanglib_data()
diff --git a/src/context.c b/src/context.c index fa1f177..3970624 100644 --- a/src/context.c +++ b/src/context.c
@@ -772,7 +772,7 @@ r = asprintf(&str, "file://%s", mod->filepath); LY_CHECK_ERR_GOTO(r == -1, LOGMEM(ctx); ret = LY_EMEM, error); - ret = lyd_new_term(cont, NULL, "schema", str, 0, NULL); + ret = lyd_new_term(cont, NULL, "location", str, 0, NULL); free(str); LY_CHECK_GOTO(ret, error); }