diff options
| author | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-06-25 05:42:41 +0000 |
|---|---|---|
| committer | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-06-25 05:42:41 +0000 |
| commit | f2439b59902a6864113d84eaf4714ad8d9557019 (patch) | |
| tree | 1172f764f7e9f452f53abb6792104af4657097b9 /ext | |
| parent | ed374921efb5f3d04a9635395177f29072550c33 (diff) | |
| download | ruby-f2439b59902a6864113d84eaf4714ad8d9557019.tar.gz ruby-f2439b59902a6864113d84eaf4714ad8d9557019.tar.xz ruby-f2439b59902a6864113d84eaf4714ad8d9557019.zip | |
* ext/sdbm/init.c (fsdbm_select): SDBM#select had returned the array
which contained each elements twice. [ruby-dev:26358]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8662 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/sdbm/init.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/ext/sdbm/init.c b/ext/sdbm/init.c index c401d4a05..acadc9b26 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 { |
