test
This commit is contained in:
parent
1cc637bbf4
commit
cadda9577c
@ -75,7 +75,7 @@ struct car* clear_train(struct car* first, const char* target) {
|
|||||||
}
|
}
|
||||||
if(strcmp(this->next->value, target) == 0){
|
if(strcmp(this->next->value, target) == 0){
|
||||||
free(this->next);
|
free(this->next);
|
||||||
this->next=NULL;
|
this->next=this->next->next;
|
||||||
return this;
|
return this;
|
||||||
}else if(strcmp(this->next->next->value, target) == 0){
|
}else if(strcmp(this->next->next->value, target) == 0){
|
||||||
free(this->next->next);
|
free(this->next->next);
|
||||||
|
Loading…
Reference in New Issue
Block a user