lmdb: catch non-LMDB negative errors before strerror

That should hopefully shut coverity up
This commit is contained in:
moneromooo-monero 2019-04-13 23:37:03 +00:00 committed by Quanah Gibson-Mount
parent e2028b0d01
commit 8a76450336

View file

@ -1517,6 +1517,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
}