Skip to content

Commit b8093b9

Browse files
committed
validation REFACTOR redundant safe loop
1 parent eecad55 commit b8093b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/validation.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1552,10 +1552,10 @@ lyd_validate_final_r(struct lyd_node *first, const struct lyd_node *parent, cons
15521552
{
15531553
LY_ERR r, rc = LY_SUCCESS;
15541554
const char *innode;
1555-
struct lyd_node *next = NULL, *node;
1555+
struct lyd_node *node;
15561556

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

0 commit comments

Comments
 (0)