From ad4a65e4cd1cb14d0c18cf79cdc322051b1a0897 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barra=20=C3=93=20Cath=C3=A1in?= Date: Thu, 26 Oct 2023 17:33:57 +0100 Subject: [PATCH] What? --- src/queue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/queue.c b/src/queue.c index 74ba8e8..8a09180 100644 --- a/src/queue.c +++ b/src/queue.c @@ -7,7 +7,7 @@ queue * createQueue(void) { // Allocate the memory for the queue: - queue * newQueue = malloc(sizeof(queue)); + queue * newQueue = calloc(1, sizeof(queue)); // Instantiate the variables in the data-structure: newQueue->itemCount = 0;