This commit is contained in:
Maryna Kravtsova 2020-11-03 20:44:35 +01:00
parent ee01429d40
commit 9336e66755

View File

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