zase zatvorka
This commit is contained in:
parent
93c8452d85
commit
3972d51eff
@ -55,10 +55,10 @@ struct car* clear_train(struct car* first, const char* target) {
|
||||
if(strcmp(this->value, target) == 0){
|
||||
//strcpy(this->value,this->next->value);
|
||||
//this->next=NULL;
|
||||
strucat car* tmp = this->next;
|
||||
free(this);
|
||||
this=this->next;
|
||||
//free(this->next);
|
||||
return this;
|
||||
return tmp;
|
||||
}else if(strcmp(this->next->value, target) == 0){
|
||||
free(this->next);
|
||||
this->next=NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user