Fixing
This commit is contained in:
parent
a73b28bb78
commit
bb5318e2e1
@ -61,7 +61,7 @@ struct car* clear_train(struct car* first, const char* target) {
|
|||||||
return first;
|
return first;
|
||||||
|
|
||||||
}
|
}
|
||||||
while(first!= NULL && strcmp(first->value, target)){
|
while(first!= NULL & strcmp(first->value, target) == 0){
|
||||||
struct car* targetNode = first;
|
struct car* targetNode = first;
|
||||||
first = first->next;
|
first = first->next;
|
||||||
free(targetNode);
|
free(targetNode);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user