bmatsuo / lmdb-go

Bindings for the LMDB C library
BSD 3-Clause "New" or "Revised" License
157 stars 59 forks source link

lmdb: fix return value of Env.ReaderList when passed invalid arguments #48

Closed bmatsuo closed 8 years ago

bmatsuo commented 8 years ago

When Env.ReaderList is called with a nil function argument it behaves as if mdb_env_reader_list() was called with a NULL function argument, returning an error. Calling ReaderList on an invalid Env returns an error as well, but has done so for a long time.