From ab94fb17f390a8a2c28ce99a683f25bee893f867 Mon Sep 17 00:00:00 2001 From: vj586da Date: Thu, 4 Nov 2021 20:53:49 +0100 Subject: [PATCH] final3? --- cv4/a_train.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cv4/a_train.c b/cv4/a_train.c index 0a31175..c6296f4 100755 --- a/cv4/a_train.c +++ b/cv4/a_train.c @@ -64,7 +64,7 @@ struct car* clear_train(struct car* first, const char* target) { } } while( this->next->next != NULL){ - if(strcmp(this->value, target) == 0){ + if(strcmp(this->next->value, target) == 0){ free(this->next); this->next = this->next->next; return this;