[svn:parrot] r47159 - branches/gc_massacre/src/gc

bacek at svn.parrot.org bacek at svn.parrot.org
Sun May 30 14:56:53 UTC 2010


Author: bacek
Date: Sun May 30 14:56:52 2010
New Revision: 47159
URL: https://trac.parrot.org/parrot/changeset/47159

Log:
Fix removing items from 'other' list

Modified:
   branches/gc_massacre/src/gc/list.c

Modified: branches/gc_massacre/src/gc/list.c
==============================================================================
--- branches/gc_massacre/src/gc/list.c	Sun May 30 14:56:22 2010	(r47158)
+++ branches/gc_massacre/src/gc/list.c	Sun May 30 14:56:52 2010	(r47159)
@@ -103,8 +103,10 @@
     else {
         List_Item_Header *prev = item->prev;
         List_Item_Header *next = item->next;
-        prev->next = next;
-        next->prev = prev;
+        if (prev)
+            prev->next = next;
+        if (next)
+            next->prev = prev;
         item->prev = item->next = NULL;
     }
 }


More information about the parrot-commits mailing list