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