Initialization

This commit is contained in:
Kozar 2024-04-11 14:39:18 +02:00
parent 3842dfd920
commit f34a09b2b6

View File

@ -13,7 +13,7 @@ struct snake* remove_snake(struct snake* snake) {
struct snake* head; struct snake* head;
struct snake* this = head; struct snake* this = head;
while (head!= NULL) { while (head!= NULL) {
head = head->next; head = snake->next;
free(this); free(this);
} }
return snake; return snake;