summaryrefslogtreecommitdiff
path: root/ext/sdbm
diff options
context:
space:
mode:
authorocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-06-25 05:42:41 +0000
committerocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-06-25 05:42:41 +0000
commit19c96dfff9bad038a57a377971d5289ae4cd1607 (patch)
tree1172f764f7e9f452f53abb6792104af4657097b9 /ext/sdbm
parent3a837bfdd71186d0de0f586386808a4cc1a83ffe (diff)
* ext/sdbm/init.c (fsdbm_select): SDBM#select had returned the array
which contained each elements twice. [ruby-dev:26358] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8662 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/sdbm')
-rw-r--r--ext/sdbm/init.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/ext/sdbm/init.c b/ext/sdbm/init.c
index c401d4a050..acadc9b26a 100644
--- a/ext/sdbm/init.c
+++ b/ext/sdbm/init.c
@@ -259,8 +259,6 @@ fsdbm_select(argc, argv, obj)
rb_ary_push(new, assoc);
}
GetDBM2(obj, dbmp, dbm);
- if (RTEST(rb_yield(assoc)))
- rb_ary_push(new, assoc);
}
}
else {