Skip to content

Commit d026da6

Browse files
committed
tree schema BUGFIX keep user options
1 parent 171a0e8 commit d026da6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tree_schema.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ lys_find_xpath(const struct ly_ctx *ctx, const struct lysc_node *ctx_node, const
544544
LY_CHECK_ARG_RET(NULL, ctx || ctx_node, xpath, set, LY_EINVAL);
545545
LY_CHECK_CTX_EQUAL_RET(ctx, ctx_node ? ctx_node->module->ctx : NULL, LY_EINVAL);
546546
if (!(options & LYXP_SCNODE_ALL)) {
547-
options = LYXP_SCNODE;
547+
options |= LYXP_SCNODE;
548548
}
549549
if (!ctx) {
550550
ctx = ctx_node->module->ctx;

0 commit comments

Comments
 (0)