commit | f9221e61f23faa703efacfa84b7f11fe117a4950 | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Thu Feb 04 12:10:14 2021 +0100 |
committer | Michal Vasko <mvasko@cesnet.cz> | Thu Feb 04 12:10:14 2021 +0100 |
tree | 2bdd1215256edfd91963fd57258151a25cfd47c5 | |
parent | 6f9b4264f2bf0d6f117008a6c2e6ac1c21bfa381 [diff] [blame] |
validation MAINTENANCE use function instead of special code
diff --git a/src/validation.c b/src/validation.c index 33eef1c..3ee25f7 100644 --- a/src/validation.c +++ b/src/validation.c
@@ -1188,9 +1188,7 @@ /* find first top-level node */ for (tree = node; tree->parent; tree = lyd_parent(tree)) {} - while (tree->prev->next) { - tree = tree->prev; - } + tree = lyd_first_sibling(tree); LY_ARRAY_FOR(musts, u) { memset(&xp_set, 0, sizeof xp_set);