clear
This commit is contained in:
parent
02f66e152a
commit
292d002348
@ -64,7 +64,7 @@ struct car* clear_train(struct car* first, const char* target) {
|
||||
}
|
||||
|
||||
struct car* prev = first;
|
||||
while(prev->next->next->next != NULL){
|
||||
while(prev->next != NULL){
|
||||
int x = strcmp(first->value, target);
|
||||
if(x == 0){
|
||||
prev = first->next;
|
||||
|
Loading…
Reference in New Issue
Block a user