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