From 73475fc126aa143e78eea6b76252c4eb8231d54b Mon Sep 17 00:00:00 2001 From: Maryna Kravtsova Date: Thu, 5 Nov 2020 15:30:54 +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 636a868..e4dc4bb 100644 --- a/cv5/a_train.c +++ b/cv5/a_train.c @@ -69,7 +69,7 @@ struct car* clear_train(struct car* first, const char* target) { //first = NULL; first = first->next; free(first); - return first; + return first->next; } x = strcmp(prev->next->value, target);