mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-27 05:13:25 +01:00
lmdb: catch non-LMDB negative errors before strerror
That should hopefully shut coverity up
This commit is contained in:
parent
37345921ec
commit
b6420e12a9
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);
|
NULL, err, 0, ptr, MSGSIZE, (va_list *)buf+MSGSIZE);
|
||||||
return ptr;
|
return ptr;
|
||||||
#else
|
#else
|
||||||
|
if (err < 0)
|
||||||
|
return "Invalid error code";
|
||||||
return strerror(err);
|
return strerror(err);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user