diff --git a/src/string.c b/src/string.c index 6441d653b..f4011756f 100644 --- a/src/string.c +++ b/src/string.c @@ -330,12 +330,12 @@ chars2bytes(mrb_value s, mrb_int off, mrb_int idx) return idx; } else { - mrb_int i, b, n; + mrb_int b = 0; const char *p = RSTRING_PTR(s) + off; const char *e = RSTRING_END(s); - for (b=i=0; p