mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
mruby-eval: proc from env may be NULL; close #2676
This commit is contained in:
@@ -28,7 +28,7 @@ get_closure_irep(mrb_state *mrb, int level)
|
||||
if (!e) return NULL;
|
||||
proc = c->cibase[e->cioff].proc;
|
||||
|
||||
if (MRB_PROC_CFUNC_P(proc)) {
|
||||
if (!proc || MRB_PROC_CFUNC_P(proc)) {
|
||||
return NULL;
|
||||
}
|
||||
return proc->body.irep;
|
||||
|
||||
Reference in New Issue
Block a user