From 1485d69cad84ab2f5c28b586017a4838c66744a4 Mon Sep 17 00:00:00 2001 From: nova Date: Mon, 16 Jun 2025 11:11:34 +0200 Subject: [PATCH] cleanup --- threading.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/threading.c b/threading.c index 826485e..1ad8fed 100644 --- a/threading.c +++ b/threading.c @@ -120,7 +120,6 @@ void *thread_rgt(void *data){ pthread_mutex_lock(&mutex_rgt); pthread_mutex_lock(&mutex_mid); - /* TODO(2025-06-13T01:24:43) fix the occasional wrongly coppied path */ free(rgt_content); rgt_content = malloc(sizeof(file)); rgt_content[0].file_name = malloc(file_current.file_name_width + 1); @@ -141,7 +140,7 @@ void *thread_rgt(void *data){ get_dir_content(path, &rgt_file_count, rgt_content); rgt_content[0].status &= ~FILE_STATUS_FILE_OPEN; free(path); - } else if (rgt_content[0].file_type == FILE_TYPE_REGULAR) { + } else { rgt_file_count = 1;