summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ifuse.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ifuse.c b/src/ifuse.c
index 5ef354c..4ea91af 100644
--- a/src/ifuse.c
+++ b/src/ifuse.c
@@ -69,6 +69,10 @@ static int ifuse_readdir(const char *path, void *buf, fuse_fill_dir_t filler,
69 AFClient *afc = fuse_get_context()->private_data; 69 AFClient *afc = fuse_get_context()->private_data;
70 70
71 dirs = afc_get_dir_list(afc, path); 71 dirs = afc_get_dir_list(afc, path);
72
73 if(!dirs)
74 return -ENOENT;
75
72 for (i = 0; strcmp(dirs[i], ""); i++) { 76 for (i = 0; strcmp(dirs[i], ""); i++) {
73 filler(buf, dirs[i], NULL, 0); 77 filler(buf, dirs[i], NULL, 0);
74 } 78 }