removal of malloc and memset in threading_init

This commit is contained in:
nova
2026-07-12 22:08:49 +02:00
parent 230bac4d75
commit c6ec8c1199
+3 -7
View File
@@ -466,13 +466,9 @@ void *thread_btm(){
void threading_init(){
top_buffer = malloc(sizeof(char));
rgt_buffer = malloc(sizeof(char));
btm_buffer = malloc(sizeof(char));
memset(top_buffer, '\0', sizeof(char));
memset(rgt_buffer, '\0', sizeof(char));
memset(btm_buffer, '\0', sizeof(char));
top_buffer = NULL;
rgt_buffer = NULL;
btm_buffer = NULL;
pthread_mutex_init(&mutex_top, NULL);
pthread_mutex_init(&mutex_mid, NULL);