From a1f451f702079b4ba287aa77dc595feba05ed368 Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Fri, 21 Jan 2022 15:22:59 +0500 Subject: [PATCH] Fix typo --- pkgs/ruby/ext/default/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/ruby/ext/default/main.c b/pkgs/ruby/ext/default/main.c index 5450daa..dde4b87 100644 --- a/pkgs/ruby/ext/default/main.c +++ b/pkgs/ruby/ext/default/main.c @@ -131,7 +131,7 @@ VALUE rb_KernAux_snprintf1( if (size < 0) rb_raise(rb_eRangeError, "expected non-negative size"); { - size_t fmt_size, perc_count = 0, 0; + size_t fmt_size = 0, perc_count = 0; for (const char *fmt = format; *fmt; ++fmt, ++fmt_size) { if (*fmt == '%') ++perc_count; }