--- MacRuby/trunk/gc.c 2008-10-07 07:21:54 UTC (rev 649)
+++ MacRuby/trunk/gc.c 2008-10-07 07:22:25 UTC (rev 650)
@@ -439,7 +439,9 @@
rb_objc_scan_external_callout(void *context, void (*scanner)(void *context, void *start, void *end))
{
rb_thread_t *th = GET_THREAD();
- (*scanner)(context, th->stack, th->cfp->sp);
+ if (th->stack != NULL) {
+ (*scanner)(context, th->stack, th->cfp->sp);
+ }
}
NODE*