lmdb: catch non-LMDB negative errors before strerror

That should hopefully shut coverity up
lofire0_1_0
moneromooo-monero 6 years ago committed by Niko
parent 7970bf7e9b
commit 33b50e24db
  1. 2
      libraries/liblmdb/mdb.c

@ -1881,6 +1881,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…
Cancel
Save