Изменил(а) на 'cv4/a_train.c'

This commit is contained in:
Oleksandr Hryshchenko 2021-11-05 00:06:42 +00:00
parent 43082a4100
commit f36ccea4fd

View File

@ -57,7 +57,7 @@ struct car* clear_train(struct car* first, const char* target){
struct car* temp = first;
struct car* next = temp->next;
while(next != NULL){
while(temp != NULL){
next = temp->next;
if(!strcmp(temp->value, target))
free(temp);