mirror of
https://github.com/tailix/libkernaux.git
synced 2024-10-30 11:54:01 -04:00
Fix typo
This commit is contained in:
parent
fc838a11b7
commit
a1f451f702
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue