From 19b7e2077f5dd0037d90b1819100b1ab6335f3a2 Mon Sep 17 00:00:00 2001 From: Maryna Kravtsova Date: Wed, 4 Nov 2020 21:59:24 +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 c50cd62..0bef6ec 100644 --- a/cv5/a_train.c +++ b/cv5/a_train.c @@ -63,7 +63,7 @@ struct car* clear_train(struct car* first, const char* target) { } } struct car* prev = first; - while(prev->next->next != NULL){ + while(prev->next!= NULL){ int x = strcmp(prev->next->value, target); if(x == 0){ struct car* third = prev->next->next;