Fixing the link
This commit is contained in:
parent
8e875b1b46
commit
2110f6c8a6
@ -67,8 +67,8 @@ struct car* clear_train(struct car* first, const char* target) {
|
||||
{if(strcmp(next->value, target) == 0){
|
||||
|
||||
temp->next = next->next;
|
||||
next->next = NULL;
|
||||
free(next);
|
||||
next = temp->next;
|
||||
|
||||
}
|
||||
else{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user