ah..
This commit is contained in:
parent
b96f4e3d88
commit
eaed9eda90
@ -16,7 +16,7 @@ struct car* add_car(struct car* first,const char* target) {
|
||||
struct car* newcar = calloc(1,sizeof(struct car));
|
||||
struct car* this=first;
|
||||
strcpy(newcar->value, target);
|
||||
if(this==NULL){
|
||||
if(first==NULL){
|
||||
return newcar;
|
||||
}
|
||||
while(this->next!=NULL){
|
||||
|
Loading…
Reference in New Issue
Block a user