diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2020-02-22 18:42:55 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2020-02-22 18:42:55 +0530 |
commit | 04ab3751af837b74ff73c989cff3eca8f2fd69c5 (patch) | |
tree | 689d4b48bbf3d4d798273fcb7d440fe0106ca9d7 /src | |
parent | f2ba23bb3ac5596feef6d818fb34ef37b93ba44a (diff) | |
download | nnn-04ab3751af837b74ff73c989cff3eca8f2fd69c5.tar.gz |
Minor refactor
Diffstat (limited to 'src')
-rw-r--r-- | src/nnn.c | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -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(); } |