summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-27 01:35:13 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-27 01:35:13 +0000
commit357d42569fc99c9eb6482484dab8a72cd35c57da (patch)
tree3e8a69253b6d3be051e3e0b0c050b3053bf29c3a /string.c
parent3677a68d81593493a3d19ea5bec6d3ba9faa98c1 (diff)
Suppress uninitialized variable warning with UNINITIALIZED_VAR()
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37880 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r--string.c2
1 files changed, 1 insertions, 1 deletions
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) {