X-Git-Url: https://git.librecmc.org/?p=oweals%2Fopkg-lede.git;a=blobdiff_plain;f=libopkg%2Factive_list.c;h=2694689cd7e0a633dc9ad934bd246a5711e547ec;hp=85444400f23979bd0aac46784923f26699d6f697;hb=524db69ff113af70a527823e1699e8eae3400c0b;hpb=e91e75dcb824cdc22799b1eb15395d065b4d9518 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) {