mruby-proc-binding: combine variable declaration with initialization

This commit is contained in:
Yukihiro "Matz" Matsumoto
2025-11-05 11:24:35 +09:00
parent e58c838c1d
commit 75a2a59637
@@ -37,8 +37,8 @@ mrb_proc_binding(mrb_state *mrb, mrb_value procval)
{
const struct RProc *proc = mrb_proc_ptr(procval);
struct REnv *env;
mrb_value receiver;
if (!proc || MRB_PROC_CFUNC_P(proc) || !proc->upper || MRB_PROC_CFUNC_P(proc->upper)) {
env = NULL;
proc = NULL;