From f7afdf2db720ceefd8af3f6f9c7162f5087ed67d Mon Sep 17 00:00:00 2001
From: omah03 <omah03@mi.fu-berlin.de>
Date: Mon, 8 May 2023 13:48:52 +0000
Subject: [PATCH] Initialised thread with 0 and 1

---
 cars_2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cars_2.c b/cars_2.c
index 886192f..bc967c5 100644
--- a/cars_2.c
+++ b/cars_2.c
@@ -47,7 +47,7 @@ void* func(void* ptr){
 }
 
 int main(){
-    pthread_t threads[Car_Number];
+    pthread_t threads[Car_Number] = {0,1};
     int thread_id[Car_Number];
 
     for (int i = 0; i < Car_Number; i++){
-- 
GitLab