diff --git a/src/tree_data_new.c b/src/tree_data_new.c index 5d9f429f1..ecc539b75 100644 --- a/src/tree_data_new.c +++ b/src/tree_data_new.c @@ -824,6 +824,7 @@ _lyd_new_list3(struct lyd_node *parent, const struct lys_module *module, const c rc = lyd_create_term(key_s, key_val, key_len, 0, NULL, format, NULL, LYD_HINT_DATA, NULL, &key); LY_CHECK_GOTO(rc, cleanup); lyd_insert_node(ret, NULL, key, 1); + ++i; } if (parent) {