Commit 8311cc92 authored by's avatar
Browse files

bugfix: check for NULL before testing isPartiallyFull(stp->blocks)

parent 31373447
......@@ -1237,7 +1237,7 @@ init_uncollected_gen (nat g, nat threads)
// If the block at the head of the list in this generation
// is less than 3/4 full, then use it as a todo block.
if (isPartiallyFull(stp->blocks))
if (stp->blocks && isPartiallyFull(stp->blocks))
ws->todo_bd = stp->blocks;
ws->todo_free = ws->todo_bd->free;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment