fix: fd return by open is a pointer

This commit is contained in:
Minglei Jin 2022-06-21 19:49:49 +08:00
parent 25fdcac305
commit 7a87a43b0a
1 changed files with 1 additions and 1 deletions

View File

@ -432,7 +432,7 @@ int tdbPagerRestore(SPager *pPager, SBTree *pBt) {
u8 *pageBuf = NULL;
tdb_fd_t jfd = tdbOsOpen(pPager->jFileName, TDB_O_RDWR, 0755);
if (jfd < 0) {
if (jfd == NULL) {
return 0;
}