From 8e02dfdaf5e551ce93261e46a50c7f05dc969aee Mon Sep 17 00:00:00 2001 From: ak643du Date: Thu, 11 Apr 2024 14:21:13 +0200 Subject: [PATCH] Initialization --- cv9/snake.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cv9/snake.c b/cv9/snake.c index 5f32908..91b4fc4 100644 --- a/cv9/snake.c +++ b/cv9/snake.c @@ -13,7 +13,7 @@ struct snake* remove_snake(struct snake* snake) { struct snake* head; struct snake* this = head; if (this!= NULL) { - this = this->next; + this = snake->next; free(this); } return snake;