From 9336e667551ef4eed64ecf9fd8644aab1f405447 Mon Sep 17 00:00:00 2001 From: Maryna Kravtsova Date: Tue, 3 Nov 2020 20:44:35 +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 6bb7c5c..ce49736 100644 --- a/cv5/a_train.c +++ b/cv5/a_train.c @@ -61,7 +61,7 @@ struct car* clear_train(struct car* first, const char* target) { } else{ struct car* this = first; - while(first != NULL){ + while(this != NULL){ int x = strcmp(this->value, target); if(x == 0){ struct car* curr = first;