should not continue loop when ci = NULL

parent 56ebac0d
......@@ -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);
......
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