diff --git a/cv5/a_train.c b/cv5/a_train.c index 7cecd41..cc680a7 100644 --- a/cv5/a_train.c +++ b/cv5/a_train.c @@ -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);