This commit is contained in:
Maryna Kravtsova 2020-11-04 22:24:10 +01:00
parent 549a6793f6
commit eaab488d65

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;
return third;
return prev;
}
prev = prev->next;
}