diff --git a/cv5/a_train.c b/cv5/a_train.c index 2708199..6bb2933 100644 --- a/cv5/a_train.c +++ b/cv5/a_train.c @@ -9,11 +9,10 @@ struct car* add_car(struct car* first,const char* target) { if(target == NULL){ return 0; } + struct car* newcar = calloc(1, sizeof(struct car)); if(first == NULL){ return newcar; } - - struct car* newcar = calloc(1, sizeof(struct car)); strcpy(newcar->value, target); struct car *this = first;