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;