From 0394b3b26915600137014b83c4df124e81089356 Mon Sep 17 00:00:00 2001 From: Maryna Kravtsova Date: Mon, 2 Nov 2020 12:19:29 +0100 Subject: [PATCH] add --- cv5/a_train.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/cv5/a_train.c b/cv5/a_train.c index 94f2419..570c209 100644 --- a/cv5/a_train.c +++ b/cv5/a_train.c @@ -11,9 +11,6 @@ struct car* add_car(struct car* first,const char* target) { if(first == NULL){ return newcar; } - if(first->next == NULL){ - first->next = newcar; - } struct car *this = first; while(this->next != NULL){ this = this->next;