filetable nit

上级 c2da23f1
...@@ -71,7 +71,7 @@ private: ...@@ -71,7 +71,7 @@ private:
~filetable() { ~filetable() {
for(int fd = 0; fd < NOFILE; fd++){ for(int fd = 0; fd < NOFILE; fd++){
if (ofile_[fd]){ if (ofile_[fd].load() != nullptr) {
ofile_[fd].load()->dec(); ofile_[fd].load()->dec();
ofile_[fd] = nullptr; ofile_[fd] = nullptr;
} }
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论