1
0
Fork 0
mirror of https://github.com/tailix/libkernaux.git synced 2025-04-07 17:32:45 -04:00

Ruby: remove unnecessary args

This commit is contained in:
Alex Kotov 2022-01-22 06:45:13 +05:00 committed by GitHub
parent 4370d12928
commit b489d786d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -227,7 +227,7 @@ VALUE rb_KernAux_snprintf1(
if (!str) rb_raise(rb_eNoMemError, "snprintf1 buffer malloc");
const int slen = use_dbl
? kernaux_snprintf(str, size, format, dbl)
: kernaux_snprintf(str, size, format, arg, "", "", "");
: kernaux_snprintf(str, size, format, arg);
const VALUE output_rb =
rb_funcall(rb_str_new2(str), rb_intern_freeze, 0);
free(str);