train
This commit is contained in:
parent
386b1cebca
commit
960491964c
@ -37,7 +37,7 @@ void cancel_train(struct car* first) {
|
||||
if(first == NULL){
|
||||
exit(0);
|
||||
}
|
||||
else if(first->next == NULL){
|
||||
if(first->next == NULL){
|
||||
free(first);
|
||||
first = NULL;
|
||||
exit(0);
|
||||
|
Loading…
Reference in New Issue
Block a user