mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-31 12:09:35 -05:00
lmdb: catch non-LMDB negative errors before strerror
That should hopefully shut coverity up
This commit is contained in:
parent
e2028b0d01
commit
8a76450336
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue