commit | e50a0b5bbbcf6e43c6ace51fa4b9835d5b713422 | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Thu Aug 17 14:58:30 2023 +0200 |
committer | Michal Vasko <mvasko@cesnet.cz> | Thu Aug 17 14:58:30 2023 +0200 |
tree | ef850028facb53729a4d73a36d6c085da75c60db | |
parent | fbd0da486cc9a2c88ca96db3a4dca1175887179c [diff] [blame] |
tree data REFACTOR variable reuse
diff --git a/src/tree_data_common.c b/src/tree_data_common.c index 68a67ec..677a8e7 100644 --- a/src/tree_data_common.c +++ b/src/tree_data_common.c
@@ -816,8 +816,8 @@ opaq = (struct lyd_node_opaq *)node; parent = lyd_parent(node); - if (lyd_parent(node)) { - LOG_LOCSET(NULL, lyd_parent(node), NULL, NULL); + if (parent) { + LOG_LOCSET(NULL, parent, NULL, NULL); ++loc_node; } else { LOG_LOCSET(NULL, NULL, "/", NULL);