projects
/
project
/
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
f1143c5
..
9d5802a
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