11/**
22 * @file tree_schema.c
33 * @author Radek Krejci <[email protected] > 4+ * @author Michal Vasko <[email protected] > 45 * @brief Schema tree implementation
56 *
6- * Copyright (c) 2015 - 2018 CESNET, z.s.p.o.
7+ * Copyright (c) 2015 - 2025 CESNET, z.s.p.o.
78 *
89 * This source code is licensed under BSD 3-Clause License (the "License").
910 * You may not use this file except in compliance with the License.
@@ -631,7 +632,7 @@ lys_find_path_atoms(const struct ly_ctx *ctx, const struct lysc_node *ctx_node,
631632 }
632633
633634 /* parse */
634- ret = ly_path_parse (ctx , ctx_node , path , strlen ( path ) , 0 , LY_PATH_BEGIN_EITHER , LY_PATH_PREFIX_FIRST ,
635+ ret = ly_path_parse (ctx , ctx_node , path , 0 , 0 , LY_PATH_BEGIN_EITHER , LY_PATH_PREFIX_FIRST ,
635636 LY_PATH_PRED_SIMPLE , & expr );
636637 LY_CHECK_GOTO (ret , cleanup );
637638
@@ -658,15 +659,15 @@ lys_find_path(const struct ly_ctx *ctx, const struct lysc_node *ctx_node, const
658659 LY_ERR ret ;
659660 uint8_t oper ;
660661
661- LY_CHECK_ARG_RET (ctx , ctx || ctx_node , NULL );
662+ LY_CHECK_ARG_RET (ctx , ctx || ctx_node , path , NULL );
662663 LY_CHECK_CTX_EQUAL_RET (ctx , ctx_node ? ctx_node -> module -> ctx : NULL , NULL );
663664
664665 if (!ctx ) {
665666 ctx = ctx_node -> module -> ctx ;
666667 }
667668
668669 /* parse */
669- ret = ly_path_parse (ctx , ctx_node , path , strlen ( path ) , 0 , LY_PATH_BEGIN_EITHER , LY_PATH_PREFIX_FIRST ,
670+ ret = ly_path_parse (ctx , ctx_node , path , 0 , 0 , LY_PATH_BEGIN_EITHER , LY_PATH_PREFIX_FIRST ,
670671 LY_PATH_PRED_SIMPLE , & expr );
671672 LY_CHECK_GOTO (ret , cleanup );
672673
0 commit comments