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);