diff --git a/cv5/a_train.c b/cv5/a_train.c index c50cd62..0bef6ec 100644 --- a/cv5/a_train.c +++ b/cv5/a_train.c @@ -63,7 +63,7 @@ struct car* clear_train(struct car* first, const char* target) { } } struct car* prev = first; - while(prev->next->next != NULL){ + while(prev->next!= NULL){ int x = strcmp(prev->next->value, target); if(x == 0){ struct car* third = prev->next->next;