summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-proc-ext/src
diff options
context:
space:
mode:
Diffstat (limited to 'mrbgems/mruby-proc-ext/src')
-rw-r--r--mrbgems/mruby-proc-ext/src/proc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mrbgems/mruby-proc-ext/src/proc.c b/mrbgems/mruby-proc-ext/src/proc.c
index a2f3ad101..bb4efe3fd 100644
--- a/mrbgems/mruby-proc-ext/src/proc.c
+++ b/mrbgems/mruby-proc-ext/src/proc.c
@@ -148,8 +148,8 @@ mrb_proc_parameters(mrb_state *mrb, mrb_value self)
a = mrb_ary_new(mrb);
mrb_ary_push(mrb, a, sname);
- if (i < max && irep->lv[i].name) {
- mrb_sym sym = irep->lv[i].name;
+ if (i < max && irep->lv[i]) {
+ mrb_sym sym = irep->lv[i];
const char *name = mrb_sym_name(mrb, sym);
switch (name[0]) {
case '*': case '&':