diff --git a/cv5/a_train.c b/cv5/a_train.c index 960271d..cafa6dc 100644 --- a/cv5/a_train.c +++ b/cv5/a_train.c @@ -20,8 +20,8 @@ struct car* add_car(struct car* first,const char* target) { } while(this->next!=NULL){ this=this->next; - this->next = newcar; } + this->next = newcar; strcpy(newcar->value, target); return first; }