[Bug #20903] rb_econv_str_append arguments expected to be String

This commit is contained in:
Nobuyoshi Nakada 2024-11-22 10:36:05 +09:00
parent 801e66352e
commit 4e01878bad
No known key found for this signature in database
GPG Key ID: 3582D74E1FEE4465
Notes: git 2024-11-22 03:25:05 +00:00

View File

@ -5,6 +5,8 @@ static VALUE
econv_append(VALUE self, VALUE src, VALUE dst) econv_append(VALUE self, VALUE src, VALUE dst)
{ {
rb_econv_t *ec = DATA_PTR(self); rb_econv_t *ec = DATA_PTR(self);
StringValue(src);
StringValue(dst);
return rb_econv_str_append(ec, src, dst, 0); return rb_econv_str_append(ec, src, dst, 0);
} }