summaryrefslogtreecommitdiff
path: root/hash.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-08-09 04:32:24 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-08-09 04:32:24 +0000
commitc1bbe10599dfcc2dca3823dc0784eb1835c1ed74 (patch)
treecf8d2904f1e9ba1a42b0e68e59571e97c3695f2b /hash.c
parenta3edeb5fec3dfb064a1745881f5c5ec68e2abc92 (diff)
matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@882 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/hash.c b/hash.c
index 0ff6440..0d65dc9 100644
--- a/hash.c
+++ b/hash.c
@@ -171,9 +171,7 @@ rb_hash_new2(klass)
NEWOBJ(hash, struct RHash);
OBJSETUP(hash, klass, T_HASH);
- hash->iter_lev = 0;
hash->ifnone = Qnil;
- hash->tbl = 0; /* avoid GC crashing */
hash->tbl = st_init_table(&objhash);
return (VALUE)hash;
@@ -225,9 +223,7 @@ rb_hash_s_create(argc, argv, klass)
NEWOBJ(hash, struct RHash);
OBJSETUP(hash, klass, T_HASH);
- hash->iter_lev = 0;
hash->ifnone = Qnil;
- hash->tbl = 0; /* avoid GC crashing */
hash->tbl = st_copy(RHASH(argv[0])->tbl);
return (VALUE)hash;
@@ -252,9 +248,7 @@ rb_hash_clone(hash)
NEWOBJ(clone, struct RHash);
CLONESETUP(clone, hash);
- clone->iter_lev = 0;
clone->ifnone = RHASH(hash)->ifnone;
- clone->tbl = 0; /* avoid GC crashing */
clone->tbl = (st_table*)st_copy(RHASH(hash)->tbl);
return (VALUE)clone;