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);
             }