diff --git a/threading.c b/threading.c index acd8ee7..6788e4e 100644 --- a/threading.c +++ b/threading.c @@ -188,7 +188,7 @@ void *thread_rgt(){ rgt_content->file_type = 0; rgt_content->permissions = mid_content[selected_file_current].permissions; } - } else if ((status & STATUS_DELTA_TIME) != STATUS_DELTA_TIME) { + } else if ((status & STATUS_DELTA_TIME) != STATUS_DELTA_TIME && mid_file_count > 0) { unsigned long i = 0; for (i = 0; i < rgt_file_count; i++) {