clear
This commit is contained in:
parent
79ffc56811
commit
8479b9ba53
@ -88,7 +88,7 @@ struct car* clear_train(struct car* first, const char* target) {
|
||||
if(first == this){
|
||||
first = this->next;
|
||||
free(this);
|
||||
this->next = NULL;
|
||||
first->next = NULL;
|
||||
return first;
|
||||
}
|
||||
while(curr != this){
|
||||
|
Loading…
Reference in New Issue
Block a user