mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
Merge pull request #5440
b6420e12
lmdb: catch non-LMDB negative errors before strerror (moneromooo-monero)
This commit is contained in:
commit
1f809e7485
1 changed files with 2 additions and 0 deletions
2
external/db_drivers/liblmdb/mdb.c
vendored
2
external/db_drivers/liblmdb/mdb.c
vendored
|
@ -1742,6 +1742,8 @@ mdb_strerror(int err)
|
|||
NULL, err, 0, ptr, MSGSIZE, (va_list *)buf+MSGSIZE);
|
||||
return ptr;
|
||||
#else
|
||||
if (err < 0)
|
||||
return "Invalid error code";
|
||||
return strerror(err);
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue