1
0
Fork 0
mirror of https://github.com/tailix/libkernaux.git synced 2024-10-30 11:54:01 -04:00
This commit is contained in:
Alex Kotov 2022-01-21 15:22:59 +05:00 committed by GitHub
parent fc838a11b7
commit a1f451f702
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}