add
This commit is contained in:
parent
8954780055
commit
acd98c9e47
@ -45,9 +45,8 @@ void cancel_train(struct car* first) {
|
|||||||
}
|
}
|
||||||
if(first->next == NULL){
|
if(first->next == NULL){
|
||||||
free(first);
|
free(first);
|
||||||
//first = NULL;
|
|
||||||
}
|
}
|
||||||
else{
|
else if(first->next != NULL){
|
||||||
cancel_train(first->next);
|
cancel_train(first->next);
|
||||||
first->next = NULL;
|
first->next = NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user