diff --git a/cv5/a_train.c b/cv5/a_train.c index dda77f4..10baf4a 100644 --- a/cv5/a_train.c +++ b/cv5/a_train.c @@ -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;