Commit c99b806f authored by Yukihiro Matsumoto's avatar Yukihiro Matsumoto

ci->acc should not be left uninitialized; close #303

parent 8dc533ed
...@@ -711,6 +711,7 @@ mrb_run(mrb_state *mrb, struct RProc *proc, mrb_value self) ...@@ -711,6 +711,7 @@ mrb_run(mrb_state *mrb, struct RProc *proc, mrb_value self)
if (ci->argc == CALL_MAXARGS) ci->argc = -1; if (ci->argc == CALL_MAXARGS) ci->argc = -1;
ci->target_class = m->target_class; ci->target_class = m->target_class;
ci->pc = pc + 1; ci->pc = pc + 1;
ci->acc = a;
/* prepare stack */ /* prepare stack */
mrb->stack += a; mrb->stack += a;
...@@ -725,9 +726,6 @@ mrb_run(mrb_state *mrb, struct RProc *proc, mrb_value self) ...@@ -725,9 +726,6 @@ mrb_run(mrb_state *mrb, struct RProc *proc, mrb_value self)
NEXT; NEXT;
} }
else { else {
/* fill callinfo */
ci->acc = a;
/* setup environment for calling method */ /* setup environment for calling method */
proc = mrb->ci->proc = m; proc = mrb->ci->proc = m;
irep = m->body.irep; irep = m->body.irep;
......
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