summaryrefslogtreecommitdiffstats
path: root/libopkg/active_list.c
diff options
context:
space:
mode:
Diffstat (limited to 'libopkg/active_list.c')
-rw-r--r--libopkg/active_list.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libopkg/active_list.c b/libopkg/active_list.c
index 2694689..08e1bd7 100644
--- a/libopkg/active_list.c
+++ b/libopkg/active_list.c
@@ -86,6 +86,10 @@ static void list_head_clear (struct list_head *head) {
}
void active_list_clear(struct active_list *head) {
list_head_clear(&head->node);
+ if (head->depend.next != &head->depend) {
+ list_head_clear(&head->depend);
+ }
+ active_list_init(head);
}
void active_list_add_depend(struct active_list *node, struct active_list *depend) {