diff --git a/cv5/a_train.c b/cv5/a_train.c index f618aa7..2e3b70d 100644 --- a/cv5/a_train.c +++ b/cv5/a_train.c @@ -85,7 +85,7 @@ struct car* clear_train(struct car* first, const char* target) { } - int x = strcmp(this->next->value, target); + int x = strcmp(this->value, target); if(x == 0){ free(this->next); this->next = NULL;