Skip to content

Commit

Permalink
validation REFACTOR redundant safe loop
Browse files Browse the repository at this point in the history
  • Loading branch information
michalvasko committed Dec 21, 2023
1 parent eecad55 commit b8093b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/validation.c
Original file line number Diff line number Diff line change
Expand Up @@ -1552,10 +1552,10 @@ lyd_validate_final_r(struct lyd_node *first, const struct lyd_node *parent, cons
{
LY_ERR r, rc = LY_SUCCESS;
const char *innode;
struct lyd_node *next = NULL, *node;
struct lyd_node *node;

/* validate all restrictions of nodes themselves */
LY_LIST_FOR_SAFE(first, next, node) {
LY_LIST_FOR(first, node) {
if (node->flags & LYD_EXT) {
/* ext instance data should have already been validated */
continue;
Expand Down

0 comments on commit b8093b9

Please sign in to comment.