This commit is contained in:
Maryna Kravtsova 2020-10-26 19:19:11 +01:00
parent 386b1cebca
commit 960491964c

View File

@ -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);