Initialization
This commit is contained in:
parent
9f09c56775
commit
8e02dfdaf5
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user