From f5088bf6e8d5c8e18d6c1dc14bea8d0638ab3922 Mon Sep 17 00:00:00 2001 From: Maryna Kravtsova Date: Tue, 3 Nov 2020 22:20:16 +0100 Subject: [PATCH] clear --- cv5/a_train.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cv5/a_train.c b/cv5/a_train.c index 022c7fb..48baf0d 100644 --- a/cv5/a_train.c +++ b/cv5/a_train.c @@ -97,7 +97,7 @@ struct car* clear_train(struct car* first, const char* target) { } prev->next = curr->next; - first->next = NULL; + this->next = NULL; free(this); } this = this->next;