mdbx: fix minor Coverity issues.

Change-Id: I21c44de18e4e620ecec38ec837446150736faf79
This commit is contained in:
Leonid Yuriev
2020-07-24 17:43:35 +03:00
parent 5f4f828bae
commit 2cd7fcb16d
2 changed files with 9 additions and 10 deletions

View File

@@ -1931,7 +1931,9 @@ __cold MDBX_INTERNAL_FUNC bin128_t mdbx_osal_bootid(void) {
(fstatfs(fd, &fs) == 0 && fs.f_type == /* procfs */ 0x9FA0)
? read(fd, buf, sizeof(buf))
: -1;
close(fd);
const int err = close(fd);
assert(err == 0);
(void)err;
if (len > 0 && bootid_parse_uuid(&bin, buf, len))
return bin;
}