summaryrefslogtreecommitdiff
path: root/ext/sdbm
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/sdbm
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/sdbm')
-rw-r--r--ext/sdbm/init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/sdbm/init.c b/ext/sdbm/init.c
index 1795024..0fd837d 100644
--- a/ext/sdbm/init.c
+++ b/ext/sdbm/init.c
@@ -724,7 +724,7 @@ fsdbm_empty_p(VALUE obj)
}
}
else {
- if (!dbmp->di_size)
+ if (dbmp->di_size)
return Qfalse;
}
return Qtrue;