Skip to content

Commit f4ba2ff

Browse files
authored
tree data BUGFIX non-changing iterator (#2207)
Signed-off-by: Amjad Daraiseh <[email protected]>
1 parent b66f025 commit f4ba2ff

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/tree_data_new.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -802,6 +802,7 @@ lyd_new_list3(struct lyd_node *parent, const struct lys_module *module, const ch
802802
rc = lyd_create_term(key_s, key_val, key_len, 0, store_only, NULL, format, NULL, LYD_HINT_DATA, NULL, &key);
803803
LY_CHECK_GOTO(rc, cleanup);
804804
lyd_insert_node(ret, NULL, key, LYD_INSERT_NODE_LAST);
805+
++i;
805806
}
806807

807808
if (parent) {

0 commit comments

Comments
 (0)