diff --git a/cv4/a_train.c b/cv4/a_train.c index 691e616..97ba3b7 100755 --- a/cv4/a_train.c +++ b/cv4/a_train.c @@ -54,7 +54,7 @@ struct car* clear_train(struct car* first, const char* target) { while( this->next->next != NULL){ if(strcmp(this->next->value, target) == 0){ free(this->next); - this->next == this->next->next; + this == this->next->next; return first; } else { @@ -63,4 +63,3 @@ struct car* clear_train(struct car* first, const char* target) { } return NULL; } -