diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-05-20 15:31:58 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2012-05-20 15:31:58 +0200 |
commit | e383571250615faf1d251b08c8b2f92e970d6f85 (patch) | |
tree | d1b51c08a55929e18904d69f241f230f223f565f | |
parent | 549ee59a895cfd20b0cde36d61e8df747e57069d (diff) |
flush list in vlist_replace()
-rw-r--r-- | utils.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -123,10 +123,12 @@ vlist_simple_replace(struct vlist_simple_tree *dest, struct vlist_simple_tree *o { struct vlist_simple_node *n, *tmp; + vlist_simple_update(dest); list_for_each_entry_safe(n, tmp, &old->list, list) { list_del(&n->list); vlist_simple_add(dest, n); } + vlist_simple_flush(dest); } void |