From 357d42569fc99c9eb6482484dab8a72cd35c57da Mon Sep 17 00:00:00 2001 From: naruse Date: Tue, 27 Nov 2012 01:35:13 +0000 Subject: Suppress uninitialized variable warning with UNINITIALIZED_VAR() git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37880 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'string.c') diff --git a/string.c b/string.c index 485353a619..73afd06e8d 100644 --- a/string.c +++ b/string.c @@ -6304,7 +6304,7 @@ static VALUE rb_str_enumerate_bytes(VALUE str, int wantarray) { long i; - VALUE ary = 0; + VALUE UNINITIALIZED_VAR(ary); if (rb_block_given_p()) { if (wantarray) { -- cgit v1.2.3