diff --git a/cv5/a_train.c b/cv5/a_train.c index 6bb7c5c..ce49736 100644 --- a/cv5/a_train.c +++ b/cv5/a_train.c @@ -61,7 +61,7 @@ struct car* clear_train(struct car* first, const char* target) { } else{ struct car* this = first; - while(first != NULL){ + while(this != NULL){ int x = strcmp(this->value, target); if(x == 0){ struct car* curr = first;