mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 20:01:27 +00:00
Fix build break
This commit is contained in:
parent
c58434d078
commit
a9436cfe7b
|
@ -4367,6 +4367,8 @@ static int dentfill(char *path, struct entry **dents)
|
||||||
num_files = 0;
|
num_files = 0;
|
||||||
dir_blocks = 0;
|
dir_blocks = 0;
|
||||||
buf = (char *)alloca(strlen(path) + NAME_MAX + 2);
|
buf = (char *)alloca(strlen(path) + NAME_MAX + 2);
|
||||||
|
if (!buf)
|
||||||
|
return 0;
|
||||||
|
|
||||||
if (fstatat(fd, path, &sb_path, 0) == -1)
|
if (fstatat(fd, path, &sb_path, 0) == -1)
|
||||||
goto exit;
|
goto exit;
|
||||||
|
|
Loading…
Reference in a new issue