diff --git a/cv5/a_train.c b/cv5/a_train.c index 5042afb..da1eac7 100644 --- a/cv5/a_train.c +++ b/cv5/a_train.c @@ -17,7 +17,7 @@ struct car* add_car(struct car* first,const char* target) { struct car* this=first; int length=0; if(this==NULL){ - return NULL; + return newcar; } else(this->!=NULL){ this=this->next;