summaryrefslogtreecommitdiffstats
path: root/hash.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-12-18 09:46:21 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-12-18 09:46:21 +0000
commit9a65bd2d766446e593b4c3ce8e3fd3a0e04074ca (patch)
treed927327cf133d6c690b582751a5e535fb48c0495 /hash.c
parent22db3ed48773dda6ea836ef2353e688e3cc6f1f3 (diff)
downloadruby-9a65bd2d766446e593b4c3ce8e3fd3a0e04074ca.tar.gz
ruby-9a65bd2d766446e593b4c3ce8e3fd3a0e04074ca.tar.xz
ruby-9a65bd2d766446e593b4c3ce8e3fd3a0e04074ca.zip
matz
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1065 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hash.c b/hash.c
index cc58f608c..513eeb434 100644
--- a/hash.c
+++ b/hash.c
@@ -333,6 +333,7 @@ static VALUE
rb_hash_set_default(hash, ifnone)
VALUE hash, ifnone;
{
+ rb_hash_modify(hash);
RHASH(hash)->ifnone = ifnone;
return hash;
}