schema tree BUGFIX allow generating document root paths
Fixes
@@ -533,7 +533,6 @@ lysc_path_until(const struct lysc_node *node, const struct lysc_node *parent, LY
char *path = NULL;
int len = 0;
- LY_CHECK_ARG_RET(NULL, node, NULL);
if (buffer) {
LY_CHECK_ARG_RET(node->module->ctx, buflen > 1, NULL);
buffer[0] = '\0';
