From e70abbc8cde340ee6b93c744bf1f27b218b64f78 Mon Sep 17 00:00:00 2001 From: Radovan Kofira Date: Thu, 5 Nov 2020 19:46:37 +0100 Subject: [PATCH] 15% --- cv5/a_train.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/cv5/a_train.c b/cv5/a_train.c index 4f82085..5521526 100644 --- a/cv5/a_train.c +++ b/cv5/a_train.c @@ -17,10 +17,8 @@ struct car* add_car(struct car* first,const char* target) { struct car* this=first; int length=0; while(this!=NULL){ - if(this->next!=NULL){ this=this->next; this->next = newcar; - } length++; } strcpy(newcar->value, target);