diff --git a/threading.c b/threading.c index f1a4c18..d8d8962 100644 --- a/threading.c +++ b/threading.c @@ -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);