提交 7a87a43b 编写于 作者: M Minglei Jin

fix: fd return by open is a pointer

上级 25fdcac3
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册