Skip to content
Permalink
Browse files
Fixed access of uninitialized C local variable; fix #3525
  • Loading branch information
matz committed Mar 18, 2017
1 parent b2916f1 commit 00427d45f508bb211f05383472f6963eaf0a284a
Showing 1 changed file with 1 addition and 1 deletion.
@@ -1207,7 +1207,7 @@ mrb_vm_exec(mrb_state *mrb, struct RProc *proc, mrb_code *pc)
else {
mrb_value blk = regs[bidx];
if (!mrb_nil_p(blk) && mrb_type(blk) != MRB_TT_PROC) {
ci->nregs = bidx+1;
mrb->c->ci->nregs = bidx+1;
regs[bidx] = mrb_convert_type(mrb, blk, MRB_TT_PROC, "Proc", "to_proc");
}
}

0 comments on commit 00427d4

Please sign in to comment.