From 292d0023484cc146367bc2f412ff265503e90076 Mon Sep 17 00:00:00 2001 From: Maryna Kravtsova Date: Thu, 5 Nov 2020 16:05:45 +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 57e4d94..088a647 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* prev = first; - while(prev->next->next->next != NULL){ + while(prev->next != NULL){ int x = strcmp(first->value, target); if(x == 0){ prev = first->next;