variable.c (mrb_mod_cv_get): initialize local variable

To silence compiler warning.
This commit is contained in:
Yukihiro "Matz" Matsumoto
2025-05-26 22:59:04 +09:00
parent 11bf789730
commit 7c02e17e25
+1 -1
View File
@@ -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) {