opkg: reinitial node of active_list after clear
authorticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>
Mon, 15 Dec 2008 05:32:57 +0000 (05:32 +0000)
committerticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>
Mon, 15 Dec 2008 05:32:57 +0000 (05:32 +0000)
git-svn-id: http://opkg.googlecode.com/svn/trunk@171 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358

libopkg/active_list.c

index 85444400f23979bd0aac46784923f26699d6f697..2694689cd7e0a633dc9ad934bd246a5711e547ec 100644 (file)
@@ -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) {