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