This commit is contained in:
Maryna Kravtsova 2020-11-03 21:57:00 +01:00
parent 7acc6a327b
commit db808f9727

View File

@ -86,9 +86,8 @@ struct car* clear_train(struct car* first, const char* target) {
if(x == 0){
struct car* temp = this->next->next;
this->next = NULL;
free(this);
//this->next = temp;
return temp;
this->next = temp;
return this;
}
this = this->next;
//}