This commit is contained in:
Maryna Kravtsova 2020-11-02 14:22:22 +01:00
parent 3898228630
commit 8954780055

View File

@ -41,9 +41,9 @@ void print_train(struct car* first) {
void cancel_train(struct car* first) {
if(first == NULL){
exit(0);
return;
}
else if(first->next == NULL){
if(first->next == NULL){
free(first);
//first = NULL;
}