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;
|
||||
|
||||
}
|
||||
while(first!= NULL && strcmp(first->value, target)){
|
||||
while(first!= NULL & strcmp(first->value, target) == 0){
|
||||
struct car* targetNode = first;
|
||||
first = first->next;
|
||||
free(targetNode);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user