summaryrefslogtreecommitdiff
path: root/ext/dbm
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-07-18 14:09:59 (GMT)
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-07-18 14:09:59 (GMT)
commit7624e5d36c3b812dad23aba2eb470641c3c59ad8 (patch)
tree0cbc4918379f51f29f87a5a8e668ef433f1f22d0 /ext/dbm
parent5b7b60bb5954e73dada16bc6b342020878489bdc (diff)
* ext/dbm/dbm.c (fdbm_empty_p): fix wrong condtion introduced in r36438.
* ext/sdbm/init.c (fsdbm_empty_p): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/dbm')
-rw-r--r--ext/dbm/dbm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/dbm/dbm.c b/ext/dbm/dbm.c
index 8f50e32..d41906a 100644
--- a/ext/dbm/dbm.c
+++ b/ext/dbm/dbm.c
@@ -699,7 +699,7 @@ fdbm_empty_p(VALUE obj)
}
}
else {
- if (!dbmp->di_size)
+ if (dbmp->di_size)
return Qfalse;
}
return Qtrue;