Initialization
This commit is contained in:
parent
3842dfd920
commit
f34a09b2b6
@ -13,7 +13,7 @@ struct snake* remove_snake(struct snake* snake) {
|
||||
struct snake* head;
|
||||
struct snake* this = head;
|
||||
while (head!= NULL) {
|
||||
head = head->next;
|
||||
head = snake->next;
|
||||
free(this);
|
||||
}
|
||||
return snake;
|
||||
|
Loading…
Reference in New Issue
Block a user