This commit is contained in:
Maryna Kravtsova 2020-11-04 13:13:58 +01:00
parent 3319922653
commit 4257bca064

View File

@ -69,7 +69,7 @@ struct car* clear_train(struct car* first, const char* target) {
struct car* third = prev->next->next;
free(prev->next);
prev->next = third;
first->next = NULL;
prev->next->next = NULL;
return first;
}
prev = prev->next;