Skip to content

Commit 731e3df

Browse files
committed
xpath BUGFIX ignore canonization errors
1 parent 02dba19 commit 731e3df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/xpath.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1709,8 +1709,8 @@ set_comp_canonize(struct lyxp_set *set, const struct lyxp_set_node *xp_node)
17091709
}
17101710

17111711
/* print canonized string, ignore errors, the value may not satisfy schema constraints */
1712-
r = lyd_value_validate2(set->ctx, xp_node->node->schema, set->val.str, strlen(set->val.str),
1713-
set->format, set->prefix_data, NULL, set->ext, NULL, &canon);
1712+
r = lyd_value_validate2(NULL, xp_node->node->schema, set->val.str, strlen(set->val.str), set->format,
1713+
set->prefix_data, NULL, set->ext, NULL, &canon);
17141714
if (r && (r != LY_EINCOMPLETE)) {
17151715
/* invalid value, fine */
17161716
return LY_SUCCESS;

0 commit comments

Comments
 (0)