From 7c02e17e25c5568acaacddf96ceee3fc1b4b2a7a Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Mon, 26 May 2025 22:59:04 +0900 Subject: [PATCH] variable.c (mrb_mod_cv_get): initialize local variable To silence compiler warning. --- src/variable.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {