From 0e2548ede3760ff1d8827b489186e940bafd45b1 Mon Sep 17 00:00:00 2001 From: Maryna Kravtsova Date: Tue, 27 Oct 2020 16:35:16 +0100 Subject: [PATCH] train2 --- cv5/a_train.c | 1 - 1 file changed, 1 deletion(-) diff --git a/cv5/a_train.c b/cv5/a_train.c index a868a77..cc680a7 100644 --- a/cv5/a_train.c +++ b/cv5/a_train.c @@ -7,7 +7,6 @@ struct car* add_car(struct car* first,const char* target) { struct car* newcar = calloc(1, sizeof(struct car)); strcpy(newcar->value, target); - newcar->next = first; if(first == NULL){ return newcar; }