Compare commits
1 Commits
Author | SHA1 | Date |
---|---|---|
Barra Ó Catháin | ad4a65e4cd |
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue