Merge pull request #6186 from dearblue/check-env.cxt

Omit NULL check of `e->cxt` in `OP_RETURN_BLK`
This commit is contained in:
Yukihiro "Matz" Matsumoto
2024-02-25 23:46:16 +09:00
committed by GitHub
+1 -1
View File
@@ -2311,7 +2311,7 @@ RETRY_TRY_BLOCK:
if (MRB_PROC_ENV_P(dst)) {
struct REnv *e = MRB_PROC_ENV(dst);
if (!MRB_ENV_ONSTACK_P(e) || (e->cxt && e->cxt != mrb->c)) {
if (!MRB_ENV_ONSTACK_P(e) || e->cxt != mrb->c) {
localjump_error(mrb, LOCALJUMP_ERROR_RETURN);
goto L_RAISE;
}