From 802dda2e305e378b18c3d092efb118ca91ad01cc Mon Sep 17 00:00:00 2001 From: Maryna Kravtsova Date: Wed, 4 Nov 2020 23:04:51 +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 dd9b1c5..4a272b5 100644 --- a/cv5/a_train.c +++ b/cv5/a_train.c @@ -63,7 +63,7 @@ struct car* clear_train(struct car* first, const char* target) { } } struct car* this = first; - while(this->next != NULL){ + while(this->next->next != NULL){ int x = strcmp(this->next->value, target); if(x == 0){ struct car* prev = first;