From eaab488d659d5f8c7514190a9f7c15955d9cf7c1 Mon Sep 17 00:00:00 2001 From: Maryna Kravtsova Date: Wed, 4 Nov 2020 22:24:10 +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 8e42f31..1a17e3c 100644 --- a/cv5/a_train.c +++ b/cv5/a_train.c @@ -69,7 +69,7 @@ struct car* clear_train(struct car* first, const char* target) { struct car* third = prev->next->next; free(prev->next); prev->next = third; - return third; + return prev; } prev = prev->next; }