Fixing
This commit is contained in:
parent
fad44068a8
commit
315b42fc4c
@ -70,7 +70,6 @@ struct car* clear_train(struct car* first, const char* target) {
|
|||||||
if(strcmp(temp->value, target) == 0){
|
if(strcmp(temp->value, target) == 0){
|
||||||
struct car* next = temp->next;
|
struct car* next = temp->next;
|
||||||
prev->next = next;
|
prev->next = next;
|
||||||
free(temp);
|
|
||||||
temp = next;
|
temp = next;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user