clear
This commit is contained in:
parent
22b91c853b
commit
1556d1882c
@ -65,12 +65,10 @@ struct car* clear_train(struct car* first, const char* target) {
|
||||
if(first == NULL){
|
||||
return 0;
|
||||
}
|
||||
int x;
|
||||
if(first->next == NULL){
|
||||
x = strcmp(first->value, target);
|
||||
if(x == 0){
|
||||
if(first->value == target){
|
||||
free(first);
|
||||
return 0;
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
else{
|
||||
|
Loading…
Reference in New Issue
Block a user