From a07d0dd1dfa2273790c56dcdd43838e3b8d5c68c Mon Sep 17 00:00:00 2001 From: Maryna Kravtsova Date: Thu, 5 Nov 2020 15:24:44 +0100 Subject: [PATCH] clear --- cv5/a_train.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cv5/a_train.c b/cv5/a_train.c index 5906938..dda77f4 100644 --- a/cv5/a_train.c +++ b/cv5/a_train.c @@ -69,6 +69,7 @@ struct car* clear_train(struct car* first, const char* target) { first = NULL; first = prev->next; free(prev); + return first; } x = strcmp(prev->next->value, target);