summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-05-20 15:31:58 +0200
committerFelix Fietkau <nbd@openwrt.org>2012-05-20 15:31:58 +0200
commite383571250615faf1d251b08c8b2f92e970d6f85 (patch)
treed1b51c08a55929e18904d69f241f230f223f565f
parent549ee59a895cfd20b0cde36d61e8df747e57069d (diff)
flush list in vlist_replace()
-rw-r--r--utils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils.c b/utils.c
index f1143c5..9d5802a 100644
--- a/utils.c
+++ b/utils.c
@@ -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