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