This commit is contained in:
Maryna Kravtsova 2020-11-03 22:13:00 +01:00
parent 68689e212a
commit 79ffc56811

View File

@ -87,8 +87,8 @@ struct car* clear_train(struct car* first, const char* target) {
struct car* prev = NULL;
if(first == this){
first = this->next;
this->next = NULL;
free(this);
this->next = NULL;
return first;
}
while(curr != this){