clear
This commit is contained in:
parent
c6ade28c0b
commit
b9c56da641
@ -85,7 +85,7 @@ struct car* clear_train(struct car* first, const char* target) {
|
||||
}
|
||||
|
||||
|
||||
int x = strcmp(this->next->value, target);
|
||||
int x = strcmp(this->value, target);
|
||||
if(x == 0){
|
||||
free(this->next);
|
||||
this->next = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user