car
This commit is contained in:
parent
79ad11afe3
commit
fdf9fe0917
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user