summaryrefslogtreecommitdiff
path: root/hash.c
diff options
context:
space:
mode:
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 75132c9d56..9b3bb3f97a 100644
--- a/hash.c
+++ b/hash.c
@@ -364,7 +364,7 @@ rb_hash_index(hash, value)
VALUE args[2];
args[0] = value;
- args[1] = RHASH(hash)->ifnone;
+ args[1] = Qnil;
st_foreach(RHASH(hash)->tbl, index_i, args);