This commit is contained in:
Maryna Kravtsova 2020-11-02 14:56:56 +01:00
parent 79ad11afe3
commit fdf9fe0917

View File

@ -43,10 +43,10 @@ void cancel_train(struct car* first) {
if(first == NULL){
return;
}
else if(first->next != NULL){
else if(first->value != NULL){
struct car* help = first->next;
free(first);
first->next = NULL;
//first->next = NULL;
cancel_train(help);
//first->next = NULL;
}