From 2716eb27752e700d35cae0aa597c7c7fafb100cf Mon Sep 17 00:00:00 2001 From: Maryna Kravtsova Date: Tue, 3 Nov 2020 21:20:50 +0100 Subject: [PATCH] clear --- cv5/a_train.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cv5/a_train.c b/cv5/a_train.c index 0c49087..dc9d48a 100644 --- a/cv5/a_train.c +++ b/cv5/a_train.c @@ -59,7 +59,7 @@ struct car* clear_train(struct car* first, const char* target) { return 0; } } - struct car* this = first; + //struct car* this = first; /*if(first->next->next == NULL){ int x = strcmp(this->next->value, target); if(x == 0){ @@ -79,6 +79,7 @@ struct car* clear_train(struct car* first, const char* target) { } */ else{ + struct car* this = first; while(this != NULL){ while(this != NULL){ int x =strcmp(this->value, target);