clear
This commit is contained in:
parent
f6cc965af6
commit
d8e2d7f3e1
@ -84,7 +84,9 @@ struct car* clear_train(struct car* first, const char* target) {
|
||||
while(this != NULL){
|
||||
int x = strcmp(this->value, target);
|
||||
if(x == 0){
|
||||
free(this->next);
|
||||
this->next = NULL;
|
||||
//free(this->next);
|
||||
|
||||
return first;
|
||||
}
|
||||
this = this->next;
|
||||
|
Loading…
Reference in New Issue
Block a user