From f36ccea4fda8cd535c0a9f9c793d306690c832f0 Mon Sep 17 00:00:00 2001 From: Oleksandr Hryshchenko Date: Fri, 5 Nov 2021 00:06:42 +0000 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B8=D0=BB(?= =?UTF-8?q?=D0=B0)=20=D0=BD=D0=B0=20'cv4/a=5Ftrain.c'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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 298bc60..53f3c94 100644 --- a/cv4/a_train.c +++ b/cv4/a_train.c @@ -57,7 +57,7 @@ struct car* clear_train(struct car* first, const char* target){ struct car* temp = first; struct car* next = temp->next; - while(next != NULL){ + while(temp != NULL){ next = temp->next; if(!strcmp(temp->value, target)) free(temp);