Initialization

This commit is contained in:
Kozar 2024-04-11 14:21:13 +02:00
parent 9f09c56775
commit 8e02dfdaf5

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;
if (this!= NULL) { if (this!= NULL) {
this = this->next; this = snake->next;
free(this); free(this);
} }
return snake; return snake;