clear
This commit is contained in:
parent
fdd693443e
commit
533abadd61
@ -60,6 +60,9 @@ struct car* clear_train(struct car* first, const char* target) {
|
|||||||
free(first);
|
free(first);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
else{
|
||||||
|
return first;
|
||||||
|
}
|
||||||
prev = first->next;
|
prev = first->next;
|
||||||
free(first);
|
free(first);
|
||||||
return prev;
|
return prev;
|
||||||
|
Loading…
Reference in New Issue
Block a user