Fix for nursery resizing: the first block's back pointer should be NULL
[ghc-hetmet.git] / rts / sm / Storage.c
index 10a0a38..2172f9b 100644 (file)
@@ -353,6 +353,8 @@ allocNursery (bdescr *tail, nat blocks)
 
             if (i > 0) {
                 bd[i].u.back = &bd[i-1];
+            } else {
+                bd[i].u.back = NULL;
             }
 
             if (i+1 < n) {