path BUGFIX restrictive assert
diff --git a/src/path.c b/src/path.c
index 36ff6d2..3f4ad18 100644
--- a/src/path.c
+++ b/src/path.c
@@ -402,7 +402,6 @@
size_t len;
assert(expr->tokens[tok_idx] == LYXP_TOKEN_NAMETEST);
- assert((lref != LY_PATH_LREF_TRUE) || unres);
/* get prefix */
if ((pref = strnstr(expr->expr + expr->tok_pos[tok_idx], ":", expr->tok_len[tok_idx]))) {
@@ -428,6 +427,7 @@
LOGVAL(ctx, LYVE_XPATH, "Not implemented module \"%s\" in path.", (*mod)->name);
goto error;
}
+ assert(unres);
LY_CHECK_GOTO(ret = lys_set_implemented_r((struct lys_module *)*mod, NULL, unres), error);
}