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