projects
/
oweals
/
netifd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
549ee59
)
flush list in vlist_replace()
author
Felix Fietkau
<nbd@openwrt.org>
Sun, 20 May 2012 13:31:58 +0000
(15:31 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Sun, 20 May 2012 13:31:58 +0000
(15:31 +0200)
utils.c
patch
|
blob
|
history
diff --git
a/utils.c
b/utils.c
index f1143c500585a7a76dc6e35c0ef9ceceb9c3d631..9d5802a41df0aeb195af6b9f26286afec83c7093 100644
(file)
--- 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