diff --git a/cv4/a_train.c b/cv4/a_train.c index a4c58e5..f202840 100755 --- a/cv4/a_train.c +++ b/cv4/a_train.c @@ -79,7 +79,7 @@ struct car* clear_train(struct car* first, const char* target) { return this; }else if(strcmp(this->next->next->value, target) == 0){ free(this->next->next); - this->next=NULL; + this->next->next=NULL; return this; } return first;