This commit is contained in:
Maryna Kravtsova 2020-11-03 21:23:12 +01:00
parent 2716eb2775
commit 81c09c06b7

View File

@ -84,7 +84,8 @@ struct car* clear_train(struct car* first, const char* target) {
while(this != NULL){
int x = strcmp(this->value, target);
if(x == 0){
return NULL;
free(this);
return first;
}
this = this->next;
}