From 208240870a7e75088f6216dd7a85a770c7912dd0 Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 9 May 2017 14:11:46 +0000 Subject: [PATCH] string.c: fix r58618 * string.c (unicode_normalize_common): aggregation type cannot be initialized with dynamic values, in C89. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58621 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- string.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/string.c b/string.c index 47389ba7d7..4267f010a4 100644 --- a/string.c +++ b/string.c @@ -9592,12 +9592,13 @@ static VALUE unicode_normalize_common(int argc, VALUE *argv, VALUE str, ID id) { static int UnicodeNormalizeRequired = 0; - VALUE argv2[2] = { str }; + VALUE argv2[2]; if (!UnicodeNormalizeRequired) { rb_require("unicode_normalize/normalize.rb"); UnicodeNormalizeRequired = 1; } + argv2[0] = str; rb_scan_args(argc, argv, "01", &argv2[1]); return rb_funcallv(mUnicodeNormalize, id, argc+1, argv2); }