Author: chromatic
Date: Sat Apr 21 19:37:17 2007
New Revision: 18296

Modified:
   trunk/src/gc/dod.c

Log:
Avoid a branch on an uninitialized value.

Modified: trunk/src/gc/dod.c
==============================================================================
--- trunk/src/gc/dod.c  (original)
+++ trunk/src/gc/dod.c  Sat Apr 21 19:37:17 2007
@@ -400,8 +400,10 @@
             }
         }
 
+        /* this value may be null */
         next = PMC_next_for_GC(current);
-        if (next == current)
+
+        if (next && next == current)
             break;
         if (--how_many == 0) {
             current = next;

Reply via email to