Fix SEGV when unshared env

This commit is contained in:
ksss
2016-09-06 17:11:18 +09:00
parent 9040086e92
commit e66b35c6ee
+2
View File
@@ -26,6 +26,8 @@ get_closure_irep(mrb_state *mrb, int level)
}
if (!e) return NULL;
if (!MRB_ENV_STACK_SHARED_P(e)) return NULL;
proc = c->cibase[e->cioff].proc;
if (!proc || MRB_PROC_CFUNC_P(proc)) {