fix: fd return by open is a pointer
This commit is contained in:
parent
25fdcac305
commit
7a87a43b0a
|
@ -432,7 +432,7 @@ int tdbPagerRestore(SPager *pPager, SBTree *pBt) {
|
||||||
u8 *pageBuf = NULL;
|
u8 *pageBuf = NULL;
|
||||||
|
|
||||||
tdb_fd_t jfd = tdbOsOpen(pPager->jFileName, TDB_O_RDWR, 0755);
|
tdb_fd_t jfd = tdbOsOpen(pPager->jFileName, TDB_O_RDWR, 0755);
|
||||||
if (jfd < 0) {
|
if (jfd == NULL) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue