diff --git a/src/variable.c b/src/variable.c index 3abba5478..1208304fa 100644 --- a/src/variable.c +++ b/src/variable.c @@ -614,7 +614,7 @@ mrb_value mrb_mod_cv_get(mrb_state *mrb, struct RClass *c, mrb_sym sym) { struct RClass * cls = c; - mrb_value v; + mrb_value v = mrb_nil_value(); mrb_bool given = FALSE; while (c) {