From 7be122a19c5167769379f5258895dc4c41890136 Mon Sep 17 00:00:00 2001 From: Maryna Kravtsova Date: Tue, 27 Oct 2020 16:42:57 +0100 Subject: [PATCH] train2 --- 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 e1f1dbc..fe3ee11 100644 --- a/cv5/a_train.c +++ b/cv5/a_train.c @@ -39,7 +39,7 @@ void cancel_train(struct car* first) { } if(first->next == NULL){ struct car *this = first; - first = fitst->next; + first = first->next; free(this); exit(0); }