summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2024-11-22 10:36:05 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2024-11-22 10:36:05 +0900
commit4e01878badf6bbc06fa6538f6bea199f772b1b3e (patch)
tree17dedff03111c6448936e8cec4abdb08110dc52e
parent801e66352e698eb533c535f600d958bc1e07e75e (diff)
[Bug #20903] `rb_econv_str_append` arguments expected to be String
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/12145
-rw-r--r--ext/-test-/econv/append.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/-test-/econv/append.c b/ext/-test-/econv/append.c
index 724cd136c0..eb473c47a3 100644
--- a/ext/-test-/econv/append.c
+++ b/ext/-test-/econv/append.c
@@ -5,6 +5,8 @@ static VALUE
econv_append(VALUE self, VALUE src, VALUE dst)
{
rb_econv_t *ec = DATA_PTR(self);
+ StringValue(src);
+ StringValue(dst);
return rb_econv_str_append(ec, src, dst, 0);
}