Skip to content

Commit

Permalink
fix a bug of RIMS::QDBM::Curia_KeyValueStore.open_with_conf
Browse files Browse the repository at this point in the history
Fixed a bug that argument shifted if `bnum' was omitted when `dnum' was specified.
  • Loading branch information
y10k committed Feb 20, 2019
1 parent a3741bd commit 9a7c768
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/rims/qdbm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,12 @@ def open_with_conf(name, config)
dnum = config['dnum']

args = []
args << bnum if bnum
args << dnum if dnum
unless (dnum) then
args << bnum if bnum
else
args << bnum || -1
args << dnum
end

open(name, *args)
end
Expand Down

0 comments on commit 9a7c768

Please sign in to comment.