What?
This commit is contained in:
parent
fe444ac8c8
commit
ad4a65e4cd
|
@ -7,7 +7,7 @@
|
||||||
queue * createQueue(void)
|
queue * createQueue(void)
|
||||||
{
|
{
|
||||||
// Allocate the memory for the queue:
|
// Allocate the memory for the queue:
|
||||||
queue * newQueue = malloc(sizeof(queue));
|
queue * newQueue = calloc(1, sizeof(queue));
|
||||||
|
|
||||||
// Instantiate the variables in the data-structure:
|
// Instantiate the variables in the data-structure:
|
||||||
newQueue->itemCount = 0;
|
newQueue->itemCount = 0;
|
||||||
|
|
Loading…
Reference in New Issue