summaryrefslogtreecommitdiff
path: root/hash.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-10 02:01:21 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-10 02:01:21 +0000
commit485f3b57bc00fa7e4035417e98da146b3299b970 (patch)
treeaeae84f6e469fbf8df35628e11b8ed40497de77a /hash.c
parentf798ff4c43fc8cf7b00bd770d7eb78c0af664eee (diff)
Initialize bin
* hash.c (linear_update): initialize `bin` just to silence false warnings by old gcc 4.8. [Bug #15299] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66306 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hash.c b/hash.c
index 63333b6b5f..a98c4da71a 100644
--- a/hash.c
+++ b/hash.c
@@ -814,7 +814,7 @@ linear_update(VALUE hash, st_data_t key,
st_update_callback_func *func, st_data_t arg)
{
int retval, existing;
- unsigned bin;
+ unsigned bin = RHASH_ARRAY_MAX_BOUND;
st_data_t value = 0, old_key;
st_hash_t hash_value = do_hash(key);