This commit is contained in:
Maryna Kravtsova 2020-11-04 23:04:51 +01:00
parent 4fae15c755
commit 802dda2e30

View File

@ -63,7 +63,7 @@ struct car* clear_train(struct car* first, const char* target) {
}
}
struct car* this = first;
while(this->next != NULL){
while(this->next->next != NULL){
int x = strcmp(this->next->value, target);
if(x == 0){
struct car* prev = first;