From 8fd5decb457cc91ca11e28087855c6dfcd698759 Mon Sep 17 00:00:00 2001 From: Maryna Kravtsova Date: Thu, 5 Nov 2020 10:36:18 +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 d9200e0..663032b 100644 --- a/cv5/a_train.c +++ b/cv5/a_train.c @@ -63,8 +63,8 @@ struct car* clear_train(struct car* first, const char* target) { } } struct car* this = first; - while(this->next->next != NULL){ - int x = strcmp(this->next->value, target); + while(this->next != NULL){ + int x = strcmp(this->value, target); if(x == 0){ struct car* third = this->next->next; if(first == this){