This commit is contained in:
Anton Dolozin 2025-10-28 21:27:02 +01:00
parent a73b28bb78
commit bb5318e2e1

View File

@ -61,7 +61,7 @@ struct car* clear_train(struct car* first, const char* target) {
return first;
}
while(first!= NULL && strcmp(first->value, target)){
while(first!= NULL & strcmp(first->value, target) == 0){
struct car* targetNode = first;
first = first->next;
free(targetNode);