From 72699efb8a085d80077fcd2cad823f18dd31f9f9 Mon Sep 17 00:00:00 2001 From: Maryna Kravtsova Date: Tue, 3 Nov 2020 21:52:13 +0100 Subject: [PATCH] clear --- cv5/a_train.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cv5/a_train.c b/cv5/a_train.c index 5415679..8761a76 100644 --- a/cv5/a_train.c +++ b/cv5/a_train.c @@ -86,8 +86,8 @@ struct car* clear_train(struct car* first, const char* target) { if(x == 0){ struct car* temp = this->next->next; this->next = NULL; - this->next = temp; - return this; + //this->next = temp; + return temp; } this = this->next; //}