clear
This commit is contained in:
parent
549a6793f6
commit
eaab488d65
@ -69,7 +69,7 @@ struct car* clear_train(struct car* first, const char* target) {
|
||||
struct car* third = prev->next->next;
|
||||
free(prev->next);
|
||||
prev->next = third;
|
||||
return third;
|
||||
return prev;
|
||||
}
|
||||
prev = prev->next;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user