mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
Minor refactor
This commit is contained in:
parent
f2ba23bb3a
commit
04ab3751af
|
@ -4252,16 +4252,13 @@ static int dentfill(char *path, struct entry **dents)
|
||||||
dir_blocks = 0;
|
dir_blocks = 0;
|
||||||
buf = (char *)alloca(strlen(path) + NAME_MAX + 2);
|
buf = (char *)alloca(strlen(path) + NAME_MAX + 2);
|
||||||
|
|
||||||
if (fstatat(fd, path, &sb_path, 0) == -1) {
|
if (fstatat(fd, path, &sb_path, 0) == -1)
|
||||||
closedir(dirp);
|
goto exit;
|
||||||
printwarn(NULL);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!ihashbmp) {
|
if (!ihashbmp) {
|
||||||
ihashbmp = calloc(1, HASH_OCTETS << 3);
|
ihashbmp = calloc(1, HASH_OCTETS << 3);
|
||||||
if (!ihashbmp)
|
if (!ihashbmp)
|
||||||
return 0;
|
goto exit;
|
||||||
} else
|
} else
|
||||||
clear_hash();
|
clear_hash();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue