https://bugs.openldap.org/show_bug.cgi?id=10198
--- Comment #3 from Howard Chu hyc@openldap.org --- Your test program isn't a valid test because the pointer you're passing is actually not pointing to any valid memory, whereas the LMDB code is pointing to a properly allocated stack buffer.
Regardless, that parameter really isn't needed, and should just be NULL.