final2?
This commit is contained in:
parent
7aaca319e2
commit
560f813276
@ -57,6 +57,10 @@ struct car* clear_train(struct car* first, const char* target) {
|
|||||||
this->next=NULL;
|
this->next=NULL;
|
||||||
free(this->next);
|
free(this->next);
|
||||||
return this;
|
return this;
|
||||||
|
}else if(strcmp(this->next->value, target) == 0){
|
||||||
|
free(this->next);
|
||||||
|
this->next=NULL;
|
||||||
|
return this;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
while( this->next->next != NULL){
|
while( this->next->next != NULL){
|
||||||
|
Loading…
Reference in New Issue
Block a user