浏览代码

Minor refactor

master
Arun Prakash Jana 5 年前
父节点
当前提交
04ab3751af
找不到此签名对应的密钥 GPG 密钥 ID: A75979F35C080412
共有 1 个文件被更改,包括 3 次插入6 次删除
  1. +3
    -6
      src/nnn.c

+ 3
- 6
src/nnn.c 查看文件

@@ -4252,16 +4252,13 @@ static int dentfill(char *path, struct entry **dents)
dir_blocks = 0;
buf = (char *)alloca(strlen(path) + NAME_MAX + 2);

if (fstatat(fd, path, &sb_path, 0) == -1) {
closedir(dirp);
printwarn(NULL);
return 0;
}
if (fstatat(fd, path, &sb_path, 0) == -1)
goto exit;

if (!ihashbmp) {
ihashbmp = calloc(1, HASH_OCTETS << 3);
if (!ihashbmp)
return 0;
goto exit;
} else
clear_hash();
}


正在加载...
取消
保存