mirror of
https://github.com/jarun/nnn.git
synced 2025-03-20 05:19:43 +00:00
Fix the empty dir bug
This commit is contained in:
parent
908e43cc67
commit
4384f09726
1 changed files with 4 additions and 0 deletions
4
noice.c
4
noice.c
|
@ -330,6 +330,10 @@ nochange:
|
|||
char *ext, *bin;
|
||||
pid_t pid;
|
||||
|
||||
/* Cannot descend in empty directories */
|
||||
if (n == 0)
|
||||
goto nochange;
|
||||
|
||||
name = dents[cur]->d_name;
|
||||
|
||||
switch (dents[cur]->d_type) {
|
||||
|
|
Loading…
Add table
Reference in a new issue