The stack initializer now initializes its card also.
This commit is contained in:
parent
db469c318d
commit
c744581711
@ -11,6 +11,7 @@ void allocate_stack(struct stack **stack) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void initialize_stack(struct stack *stack) {
|
void initialize_stack(struct stack *stack) {
|
||||||
|
initialize_card(stack->card);
|
||||||
stack->next = NULL;
|
stack->next = NULL;
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user