From 960491964c2e408ba25a2e60f6fb38ef1680564a Mon Sep 17 00:00:00 2001 From: Maryna Kravtsova Date: Mon, 26 Oct 2020 19:19:11 +0100 Subject: [PATCH] train --- cv5/a_train.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);