This commit is contained in:
Maryna Kravtsova 2020-11-02 11:56:17 +01:00
parent cd83aa7005
commit d8021186e1

View File

@ -35,7 +35,7 @@ void cancel_train(struct car* first) {
if(first == NULL){ if(first == NULL){
exit(0); exit(0);
} }
if(this->next == NULL){ if(first->next == NULL){
struct car* this = first; struct car* this = first;
first = first->next; first = first->next;
free(this); free(this);