fix of an edgecase not unlocknig mutex
This commit is contained in:
@@ -65,6 +65,7 @@ void *thread_mid(){
|
||||
if (global_path == NULL) {
|
||||
mid_dir.current_file = NULL;
|
||||
mid_dir.file_count = 0;
|
||||
pthread_mutex_unlock(&mutex_mid);
|
||||
continue;
|
||||
}
|
||||
char *path = malloc(strlen(global_path)+1);
|
||||
|
||||
Reference in New Issue
Block a user