mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
should not continue loop when ci = NULL
This commit is contained in:
@@ -462,7 +462,7 @@ mark_context(mrb_state *mrb, struct mrb_context *c)
|
||||
}
|
||||
/* mark closure */
|
||||
for (ci = c->cibase; ci <= c->ci; ci++) {
|
||||
if (!ci) continue;
|
||||
if (!ci) break;
|
||||
mrb_gc_mark(mrb, (struct RBasic*)ci->env);
|
||||
mrb_gc_mark(mrb, (struct RBasic*)ci->proc);
|
||||
mrb_gc_mark(mrb, (struct RBasic*)ci->target_class);
|
||||
|
||||
Reference in New Issue
Block a user