Skip to content

Commit 9ca35a9

Browse files
committed
common REFACTOR minor improvements
1 parent 4eea423 commit 9ca35a9

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/ly_common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ const struct lyd_node *ly_log_location_dnode(uint32_t idx);
154154
uint32_t ly_log_location_dnode_count(void);
155155

156156
/**
157-
* @brief Update location schema/data nodes for logger, not provided arguments (NULLs) are kept (does not override).
157+
* @brief Update location schema/data nodes for logger. If both NULL, root data node is added.
158158
*
159159
* @param[in] SCNODE Compiled schema node.
160160
* @param[in] DNODE Data node.

src/path.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ ly_path_parse_predicate(const struct ly_ctx *ctx, const struct lysc_node *cur_no
499499
* @brief Parse NameTest and get the corresponding schema node.
500500
*
501501
* @param[in] ctx libyang context.
502-
* @param[in] cur_node Optional current (original context) node.
502+
* @param[in] cur_node Current (original context) node.
503503
* @param[in] cur_mod Current module of the path (where the path is "instantiated"). Needed for ::LY_VALUE_SCHEMA
504504
* and ::LY_VALUE_SCHEMA_RESOLVED.
505505
* @param[in] prev_ctx_node Previous context node.
@@ -1304,6 +1304,8 @@ ly_path_compile_leafref(const struct ly_ctx *ctx, const struct lysc_node *ctx_no
13041304
const struct lyxp_expr *expr, uint16_t oper, uint16_t target, LY_VALUE_FORMAT format, void *prefix_data,
13051305
struct ly_path **path)
13061306
{
1307+
assert(ctx_node);
1308+
13071309
return _ly_path_compile(ctx, ctx_node->module, ctx_node, top_ext, expr, 1, oper, target, 1, format, prefix_data, path);
13081310
}
13091311

0 commit comments

Comments
 (0)