Изменил(а) на 'cv4/a_train.c'
This commit is contained in:
parent
43082a4100
commit
f36ccea4fd
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user