* finalize.c (GC_register_finalizer_inner): Add GC_ASSERT that fn and
hhdr are non-NULL (instead of specifying this in a comment) if new_fo
is non-NULL (new_fo is returned by GC_oom_fn).
curr_fo = fo_next(curr_fo);
}
if (EXPECT(new_fo != 0, FALSE)) {
- /* new_fo is returned by GC_oom_fn(), so fn != 0 and hhdr != 0. */
+ /* new_fo is returned by GC_oom_fn(). */
+ GC_ASSERT(fn != 0 && hhdr != NULL);
break;
}
if (fn == 0) {