summaryrefslogtreecommitdiffstats
path: root/libopkg
diff options
context:
space:
mode:
Diffstat (limited to 'libopkg')
-rw-r--r--libopkg/active_list.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libopkg/active_list.c b/libopkg/active_list.c
index 8544440..2694689 100644
--- a/libopkg/active_list.c
+++ b/libopkg/active_list.c
@@ -81,8 +81,7 @@ static void list_head_clear (struct list_head *head) {
if (next->depend.next != &next->depend) {
list_head_clear(&next->depend);
}
- list_del_init(&next->node);
- next->depended = NULL;
+ active_list_init(next);
}
}
void active_list_clear(struct active_list *head) {