aboutsummaryrefslogtreecommitdiffstats
path: root/noice.c
diff options
context:
space:
mode:
Diffstat (limited to 'noice.c')
-rw-r--r--noice.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/noice.c b/noice.c
index 0acd4cb..549eaa3 100644
--- a/noice.c
+++ b/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) {