aboutsummaryrefslogtreecommitdiffstats
path: root/fm.c
diff options
context:
space:
mode:
Diffstat (limited to 'fm.c')
-rw-r--r--fm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fm.c b/fm.c
index e03ac57..a4a9c3d 100644
--- a/fm.c
+++ b/fm.c
@@ -102,6 +102,7 @@ file_list *fm_getdir(file_list *list, const char *path)
if (new_list->items && new_list->cap > 0) {
LOG_WRITE_INFO("Initialize list");
memset(new_list->items, 0, new_list->cap * sizeof(file_item));
+ new_list->count = 0;
}
struct dirent *d;