mruby-error: combine variable declaration with initialization

This commit is contained in:
Yukihiro "Matz" Matsumoto
2025-11-06 08:26:42 +09:00
parent 688380bec2
commit 4f33c0cc11
+3 -2
View File
@@ -12,9 +12,10 @@ static mrb_value
run_protect(mrb_state *mrb, mrb_value self)
{
mrb_value b;
mrb_value ret[2];
mrb_bool state;
mrb_get_args(mrb, "&", &b);
mrb_bool state;
mrb_value ret[2];
ret[0] = mrb_protect(mrb, protect_cb, b, &state);
ret[1] = mrb_bool_value(state);
return mrb_ary_new_from_values(mrb, 2, ret);