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