This commit is contained in:
Valér Jakubčo 2021-11-05 08:33:13 +01:00
parent cadda9577c
commit 43dd34d895

View File

@ -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;